Skip to content

SEC-2: Dependency pinning by hash - #30

Open
avx-manpreetsingh wants to merge 1 commit into
masterfrom
pin-actions-avx
Open

avx-manpreetsingh wants to merge 1 commit into
masterfrom
pin-actions-avx

Conversation

@avx-manpreetsingh

Copy link
Copy Markdown

Summary

This PR pins all GitHub Actions in our workflows to a full commit SHA instead of a version tag (part of SEC-2).

Why

A tag like actions/checkout@v4 can be moved to different code anytime by the action owner or by an attacker. A commit SHA cannot be changed, so only the exact code we have checked will run in our pipeline. This protects us from supply chain attacks.

What changed

# Before
uses: actions/checkout@v4
# After
uses: actions/checkout@<full-commit-sha> # v4

Only the action references are changed. Workflow logic is same as before.

How to test

  • Confirm workflows on this branch are passing.
  • Check every uses: line has a full SHA with the version comment.

Kindly review and approve. Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant