Skip to content

security(ci): pin GitHub Actions to commit SHAs - #2

Open
Dev9269 wants to merge 1 commit into
masterfrom
security/pin-actions
Open

Dev9269 wants to merge 1 commit into
masterfrom
security/pin-actions

Conversation

@Dev9269

@Dev9269 Dev9269 commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Summary

Pins every GitHub Action used in this repo's workflows to a full-length commit SHA, following the OpenSSF Scorecard "Pinned-Dependencies" recommendation. Mutable tags such as @v4 can be retargeted by the upstream action owner to new code; a full SHA is immutable.

The original tag is preserved in a trailing comment (e.g. # v4) for readability and future manual bumps.

Notes

  • dtolnay/rust-toolchain is pinned to a SHA and additionally given toolchain: stable, because that action derives the toolchain from its ref name.
  • No workflow logic changed; only uses: references were rewritten.
  • SHAs were resolved from the corresponding tag/branch via the GitHub API at pin time.

Verification

  • All workflow YAML files parse successfully with PyYAML.
  • Diff is limited to .github/workflows/*.

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