fix: pin GitHub Actions to commit SHA, add dependabot config - #208
Open
jeffersongoncalves wants to merge 1 commit into
Open
fix: pin GitHub Actions to commit SHA, add dependabot config#208jeffersongoncalves wants to merge 1 commit into
jeffersongoncalves wants to merge 1 commit into
Conversation
Pins all 14 third-party Actions in ci.yml, benchmark-comment.yml, and benchmark-on-demand.yml to full commit SHA instead of tag refs, so a re-pointed tag (tj-actions/changed-files incident, 2025-03) can't slip malicious code into CI. Adds .github/dependabot.yml with weekly grouped updates and a 7-day cooldown for composer and github-actions ecosystems.
Contributor
Benchmark Result: Default
Median of 10 attempts (* = outlier, excluded from result), 5000 iterations x 10 rounds, 27.23s total To run a specific benchmark, comment |
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.
Summary
ci.yml,benchmark-comment.yml, andbenchmark-on-demand.ymlto full commit SHA instead of tag refs.github/dependabot.yml(composer + github-actions, weekly, grouped, 7-day cooldown)Why
Tag/branch refs can be re-pointed by a compromised maintainer to exfiltrate CI secrets or inject malicious code — as happened with tj-actions/changed-files in March 2025. Pinning to SHA guarantees the code that ran yesterday runs again today. Dependabot cooldown gives a window to catch a malicious release before it auto-lands as a PR (ref: xz-utils incident).
Test plan
uses:refs resolve to the correct SHA for their tag