Repository navigation
ci: pin GitHub Actions to commit SHAs - #191
Open
nandakishore-s-13 wants to merge 1 commit into
Open
nandakishore-s-13 wants to merge 1 commit into
nandakishore-s-13 wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Dependabot can update compiler-managed github/gh-aw-actions pins independently, risking incompatible helper scripts.
1 open issue
What changed in this PR
This PR hardens CI by replacing mutable GitHub Actions tags with commit SHAs and limiting checkout credential persistence.
Changes:
- Pin checkout, Node.js setup, and artifact upload actions, retaining version comments.
- Disable persisted checkout credentials where workflows do not push.
- Add weekly Dependabot updates for GitHub Actions with a seven-day cooldown.
| File | Description |
|---|---|
.github/workflows/run-tests.yml |
Pins actions and disables persisted checkout credentials across test jobs. |
.github/workflows/copilot-setup-steps.yml |
Pins setup actions and disables persisted checkout credentials. |
.github/workflows/bootstrap-issues.yml |
Pins checkout while retaining credentials needed to push. |
.github/dependabot.yml |
Adds scheduled updates for GitHub Actions dependencies. |
Review effort: Balanced
| schedule: | ||
| interval: weekly | ||
| cooldown: | ||
| default-days: 7 |
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.

Description
Third-party actions in the hand-written workflows were referenced by mutable tags (
@v5,@v6), so a moved or hijacked tag could run malicious code in CI. This pins them to immutable commit SHAs (with version comments, matching the generatedweekly-workshop-triage.lock.yml) and hardens checkout credentials.Related Issue
N/A
Type of Change
Changes Made
actions/checkout(v5),actions/setup-node(v6) andactions/upload-artifact(v5) to SHAs inrun-tests.yml,copilot-setup-steps.yml,bootstrap-issues.ymlpersist-credentials: falseto checkouts that don't push (bootstrap-issues.ymlstill pushes, so it is unchanged)github-actionsecosystem (7-day cooldown) todependabot.ymlso pins stay currentweekly-workshop-triage.lock.ymlis generated and untouchedTesting
Workflow/config-only change; no data-layer or frontend code touched, so unit/e2e suites are not affected. CI on this PR exercises the pinned actions.
Checklist