Repository navigation
ci: pin actions to commit SHAs, add Dependabot for them - #739
Merged
Merged
Conversation
- every `uses:` names a full commit SHA, with the tag in a trailing comment - dependabot.yml gains a github-actions entry (weekly, grouped) so the pins stay current - docs.yml declares `permissions: contents: read` at the top level, matching the other two workflows - src/__tests__/workflows.test.ts holds the workflow shape in place Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Routine CI maintenance: pin the actions and let Dependabot keep them current.
Changes
uses:in the three workflows names a full commit SHA with the tag in a trailing comment. A tag can be moved to different code; a SHA cannot. This matters most forpeaceiris/actions-gh-pagesindocs.yml, which is handed the Pages deploy key..github/dependabot.ymlgains agithub-actionsentry, weekly, one grouped PR. The existing npm entry is unchanged.docs.ymlnow declarespermissions: contents: readat the top level, as the other two workflows already do. Its job-level block is unchanged, and the Pages push uses the deploy key, not the workflow token.src/__tests__/workflows.test.tsholds the above in place.actions/checkoutv411d5960a326750d5838078e36cf38b85af677262actions/setup-nodev449933ea5288caeca8642d1e84afbd3f7d6820020peaceiris/actions-gh-pagesv484c30a85c19949d7eee79c4ff27748b70285e453Risk
No behaviour change is intended: each SHA is the commit its tag pointed at when this was written. A mistyped SHA would fail a run at "Set up job".
unit_test.js.ymlanddev_container.ymlrun on this PR and exercise two of the pins;docs.ymlfirst runs on merge.Testing
🤖 Generated with Claude Code