Repository navigation
Pin GitHub Actions to commit SHAs - #4844
Merged
Merged
Conversation
Tags are mutable, so a compromised or retagged action could change what runs in CI. Every external action is pinned to the commit its current tag resolves to, with the exact release in a trailing comment for Dependabot. actions/checkout@master in opentofu-lint is pinned to v6.1.0 to match the other workflows. Dependabot now tracks the github-actions ecosystem weekly in one grouped PR, with a 7-day cooldown so new releases age before being proposed.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4844 +/- ##
=======================================
Coverage 92.41% 92.41%
=======================================
Files 360 360
Lines 10920 10920
Branches 946 946
=======================================
Hits 10092 10092
Misses 706 706
Partials 122 122 🚀 New features to boost your workflow:
|
This branch was successfully deployed
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.
What
Pins every external action in
.github/workflows/to a full commit SHA instead of a mutable tag, so a retagged or compromised action can't change what runs in CI.# vX.Y.Zcomment names the exact release so Dependabot can bump SHA and comment together.actions/checkout@masterinopentofu-lint.yml(a branch, not a release) is pinned to the samev6.1.0SHA the other workflows use.astral-sh/setup-uvwas already SHA-pinned; only the# v8.1.0comment was added../.github/workflows/*,./.github/actions/wait-for-deployment) are unchanged.Dependabot now covers the
github-actionsecosystem:cooldown.default-days: 7: a release must be at least 7 days old before it is proposed. Dependabot security updates are not subject to cooldown.ToDo
actions/github-script@v3,peter-evans/slash-command-dispatch@v2,peter-evans/create-or-update-comment@v1,opentofu/setup-opentofu@v1,actions/setup-python@v5). The grouped Dependabot PR will propose bumping them; review those for breaking changes.