Skip to content

Pin GitHub Actions to commit SHAs - #29

Merged
kkdev92 merged 1 commit into
mainfrom
chore/pin-actions-to-sha
Aug 12, 2026
Merged

Pin GitHub Actions to commit SHAs#29
kkdev92 merged 1 commit into
mainfrom
chore/pin-actions-to-sha

Conversation

@kkdev92

@kkdev92 kkdev92 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

A tag is a movable label. actions/checkout@v6 runs whatever v6 points at when the
job starts, so anyone able to move that tag upstream — a compromised account, or a
maintainer's mistake — runs code in this repository's workflows with its token. A commit
SHA cannot be moved.

14 references across the workflows, each resolved from the tag it already used,
so nothing changes about which code runs today. The version stays in a trailing comment
so the file remains readable and Dependabot can keep it current.

Every SHA was checked twice: that the commit exists, and that the tag still resolves to it
(dereferencing annotated tags, where the ref points at a tag object rather than a commit).

🤖 Generated with Claude Code

A tag is a movable label. actions/checkout@v6 runs whatever v6 points at when
the job starts, so anyone able to move that tag upstream — through a compromised
account, or a maintainer's mistake — runs code in this repository's workflows
with its token. A commit SHA cannot be moved.

14 references across the workflows, each resolved from the tag it already
used, so nothing changes about which code runs today. The version stays in a
trailing comment for readability and because Dependabot reads it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kkdev92
kkdev92 merged commit d2238c1 into main Aug 12, 2026
7 checks passed
@kkdev92
kkdev92 deleted the chore/pin-actions-to-sha branch August 12, 2026 09:26
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