chore: pin GitHub Actions to commit SHAs - #2
Open
tungvuson wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions supply chain by pinning third-party uses: references in workflows to immutable commit SHAs (while retaining the original version tag in a comment for readability).
Changes:
- Pin
actions/stalein the stale-issue workflow to a specific commit SHA. - Pin release automation (
release-please) to a specific commit SHA. - Pin CI and publishing workflows’ external actions (checkout, helm tooling, conventional-commit check, gh-pages deploy) to specific commit SHAs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/stale.yaml |
Pins actions/stale to a commit SHA for immutable execution. |
.github/workflows/release.yaml |
Pins google-github-actions/release-please-action to a commit SHA. |
.github/workflows/push.yaml |
Pins checkout, helm3, and gh-pages deploy actions to commit SHAs in the chart publish workflow. |
.github/workflows/lint-test.yaml |
Pins checkout, helm setup, python setup, chart-testing, and kind actions to commit SHAs. |
.github/workflows/conventional-commits-check.yaml |
Pins checkout and conventional-commits validation action to commit SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Why
N/A — automated security hardening (supply-chain security)
Summary
Pin all GitHub Actions
uses:references to exact commit SHAs. Reusable workflow calls and local./refs are left unchanged.Changes proposed in this pull request
.github/**/*.yml/.github/**/*.yaml— eachuses: action@tagreplaced withuses: action@<commit-sha> # tagTest Evidence
No logic changes. SHA values verified against GitHub API at time of generation.
Risk
Size: small diff (YAML comments only). Complexity: none. Type: CI config. Feature area: none. Requirements adherence: N/A. Test evidence clarity: N/A. Overall: no risk identified.