Skip to content

Pin GitHub actions with hash#2521

Merged
shadowspawn merged 1 commit into
tj:release/15.xfrom
shadowspawn:feature/pin-action-hashes
May 26, 2026
Merged

Pin GitHub actions with hash#2521
shadowspawn merged 1 commit into
tj:release/15.xfrom
shadowspawn:feature/pin-action-hashes

Conversation

@shadowspawn

@shadowspawn shadowspawn commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Problem

  1. Best practice to lower risk of supply chain attacks is to pin GitHub Actions to hash.

  2. Can't manually run actions on branches (e.g. run CodeQL on release/15.x)

Solution

  1. Switch to hashes using npx actions-up. In theory, dependabot will update the cases and maintain the version number comment from now on, so this is a one-shot.

https://github.com/azat-io/actions-up

  1. Add workflow_dispatch to events for actions.

https://docs.github.com/en/actions/how-tos/manage-workflow-runs/manually-run-a-workflow#configuring-a-workflow-to-run-manually

References

https://nesbitt.io/2026/04/28/github-actions-is-the-weakest-link.html

@shadowspawn

Copy link
Copy Markdown
Collaborator Author

(Sorry about the multiple PR in short period! I have some time off after a busy time at work, and doing some open source maintenance. 😅 )

@shadowspawn shadowspawn merged commit a752ed9 into tj:release/15.x May 26, 2026
9 checks passed
@shadowspawn shadowspawn deleted the feature/pin-action-hashes branch May 26, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants