Pin third-party GitHub Actions to commit SHAs#109
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Pins a third-party GitHub Action reference to an immutable commit SHA to improve workflow supply-chain integrity (DEVPROD-1072).
Changes:
- Pin
php-actions/composerin the unit test workflow to a specific commit SHA (with a version comment).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | ||
|
|
||
| - uses: php-actions/composer@v6 | ||
| - uses: php-actions/composer@8a65f0d3c6a1d17ca4800491a40b5756a4c164f3 # v6.1.2 |
andrea-sdl
approved these changes
Jun 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins GitHub Actions in this repo to immutable commit SHAs.
This PR was prepared with agent assistance and manually verified.
Tracking: DEVPROD-1072
Why
Tag references like
actions/checkout@v6are mutable — a tag can be moved to point at different code after review. Pinning each action to a full 40-character commit SHA (with a trailing# vX.Y.Zcomment for readability) makes the supply chain immutable and auditable. Grouped Dependabot updates keep the pins current.Verification
For each pinned action below, the
gh apicall returns the commit SHA the tag currently points to; it must match the SHA in the workflow file.Re-scan the repo for any remaining unpinned references in scope (should print nothing):