Skip to content

ci: pin calibreapp/image-actions to a full commit SHA#7481

Open
kobihikri wants to merge 1 commit into
refinedev:mainfrom
kobihikri:harden/pin-calibreapp-action
Open

ci: pin calibreapp/image-actions to a full commit SHA#7481
kobihikri wants to merge 1 commit into
refinedev:mainfrom
kobihikri:harden/pin-calibreapp-action

Conversation

@kobihikri

Copy link
Copy Markdown

What

Pin calibreapp/image-actions@maine9858fb… in calibreapp-image-actions.yml and
calibreapp-image-actions-dispatch.yml (tag kept in a comment).

Why

calibreapp-image-actions.yml passes githubToken: ${{ secrets.PANKOD_BOT_TOKEN }} (a bot PAT with
repo write scope) directly to this third-party action, referenced by the moving @main ref. If that
action's main were moved (compromise or an accidental change), the new code would run in refine's CI
with the bot PAT — the class of issue behind the 2025 tj-actions/changed-files incident. Pinning to
a SHA removes that. (The dispatch variant passes the scoped GITHUB_TOKEN; pinned for consistency.)

Scope / safety

Behaviour unchanged (SHA = current tip of main). Signed-off. Per GitHub's pin-to-SHA guidance.

AI-assisted; I verified the workflows, the token exposure, and the pinned SHA myself.

calibreapp-image-actions.yml hands this third-party action a bot PAT
(secrets.PANKOD_BOT_TOKEN); the dispatch variant hands it GITHUB_TOKEN. Both
reference the mutable @main tag. Pin to the current main commit SHA so a moved
tag can't run unreviewed code with those tokens. Behaviour unchanged; per
GitHub's pin-to-SHA guidance.

Signed-off-by: Kobi Hikri <kobi.hikri@gmail.com>
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7ef4c29

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant