This repository was archived by the owner on Jul 1, 2026. It is now read-only.
chore: pin GitHub Actions to commit SHAs#16
Open
tungvuson wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Pins third-party GitHub Actions in the repo’s workflows to immutable commit SHAs to reduce supply-chain risk, while preserving the original version intent via inline comments.
Changes:
- Replaced
uses: owner/action@tagwithuses: owner/action@<commit-sha> # tagacross workflows. - Left local
./references and reusable workflow calls unchanged (none shown in the diffs provided).
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/sonarqube-scan.yaml | Pins actions/checkout and actions/setup-node to specific commit SHAs. |
| .github/workflows/release.yml | Pins checkout/setup-go/goreleaser-action/action-slack to SHAs for the release pipeline. |
| .github/workflows/push.yml | Pins all third-party actions used in the push CI job (lint/build/publish/tag/notify) to SHAs. |
| .github/workflows/pull_request.yml | Pins all third-party actions used in the PR workflow (build/push/comment/notify) to SHAs. |
| .github/workflows/issues.yaml | Pins actions/stale to a specific commit SHA. |
💡 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.