Repository navigation
ci: pin GitHub Actions to commit SHAs - #87
Merged
Merged
Conversation
Pin every action in deploy, deploy-demo, auto-approve-copilot and validate-pull-request-title to a full commit SHA, keeping the same versions. A moved or compromised tag can no longer change what runs, which matters most in deploy.yml since it publishes to WordPress.org. Resolves 13 Bastion SAST github-actions-mutable-action-tag findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
All reviewed action references are pinned to full commit SHAs with no unresolved issues.
0 open findings
What changed in this PR
Pins all GitHub Actions in four workflows to immutable commit SHAs while preserving existing versions and behavior.
Changes:
- Pins actions in validation, deployment, demo deployment, and auto-approval workflows.
- Retains version comments for traceability.
| File | Description |
|---|---|
.github/workflows/validate-pull-request-title.yml |
Pins PR title validation action. |
.github/workflows/deploy.yml |
Pins deployment and release actions. |
.github/workflows/deploy-demo.yml |
Pins demo build and artifact actions. |
.github/workflows/auto-approve-copilot.yml |
Pins checkout and GitHub Script actions. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
axeptio-bot
approved these changes
Oct 16, 2026
axeptio-bot
left a comment
There was a problem hiding this comment.
Auto-approved by axeptio-bot: copilot-clean (review 5544656204, state=COMMENTED); coverage not stated by the review.
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.
Pins every
uses:in the four workflows to a full commit SHA, same versions as before (version kept as a trailing comment). Resolves 13 high Bastiongithub-actions-mutable-action-tagfindings.deploy.ymlpublishes to WordPress.org, so this is the workflow where a moved tag would matter most. Worth a dry-run of the deploy workflow (dry_runinput) after merge.Not included:
.yarnrc.ymlnpmMinimalAgeGateneeds Yarn >= 4.10; repo is on 4.9.2. Separate PR.🤖 Generated with Claude Code