Pin GH Actions to commit sha#146
Merged
Merged
Conversation
Related to: harvester/harvester#10279 Signed-off-by: Volker Theile <vtheile@suse.com>
There was a problem hiding this comment.
Pull request overview
This PR strengthens the repository’s GitHub Actions supply-chain security posture by pinning third-party Actions to immutable commit SHAs (instead of floating tags/branches), in line with the goal in harvester/harvester#10279.
Changes:
- Pin
actions/checkout, Docker setup/login/build actions, andread-vault-secretsto commit SHAs in the reusable build workflow. - Pin Trivy scan and SARIF upload actions to commit SHAs in the Trivy scanning workflow.
- Pin FOSSA and CodeQL-related actions to commit SHAs in their respective workflows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/template-build.yml | Pins build/publish workflow action dependencies (checkout, docker actions, vault secret reader) to commit SHAs. |
| .github/workflows/scan.yml | Pins Trivy scanning and SARIF upload actions (and checkout) to commit SHAs. |
| .github/workflows/fossa.yml | Pins vault secret reader and FOSSA action to commit SHAs. |
| .github/workflows/codeql-analysis.yml | Pins checkout and CodeQL actions (init/autobuild/analyze) to commit SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
@Mergifyio backport v1.7 |
✅ Backports have been createdDetails
Cherry-pick of 0658443 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Vicente-Cheng
pushed a commit
that referenced
this pull request
May 4, 2026
Related to: harvester/harvester#10279 Signed-off-by: Volker Theile <vtheile@suse.com> (cherry picked from commit 0658443) # Conflicts: # .github/workflows/fossa.yml
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.
Related to: harvester/harvester#10279