Skip to content

ci: pin GitHub Actions to commit SHAs - #4

Merged
flaviomilan merged 1 commit into
mainfrom
ci/pin-actions-sha
Nov 1, 2026
Merged

flaviomilan merged 1 commit into
mainfrom
ci/pin-actions-sha

Conversation

@flaviomilan

Copy link
Copy Markdown
Owner

Pins every GitHub Action to a full commit SHA (with the version as a comment), including branch refs such as @stable/@master.

Why: tags and branches can be repointed to malicious code (tj-actions/changed-files, trivy-action). A SHA is immutable. Dependabot (github-actions ecosystem) keeps the pins current.

dtolnay/rust-toolchain infers the toolchain from the ref name, so pinned uses now pass toolchain: stable explicitly.

🤖 Generated with Claude Code

Tags and branches like @v4, @stable or @master can be moved to malicious
code (as happened with tj-actions and trivy-action). A full commit SHA is
immutable; Dependabot keeps the pins up to date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@flaviomilan
flaviomilan merged commit 0c5bcdd into main Nov 1, 2026
6 checks passed
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