Skip to content

ci: pin GitHub Actions to commit SHAs - #87

Merged
GH-ABN merged 1 commit into
developfrom
fix_code_security_issues
Oct 16, 2026
Merged

GH-ABN merged 1 commit into
developfrom
fix_code_security_issues

Conversation

@GH-ABN

@GH-ABN GH-ABN commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

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 Bastion github-actions-mutable-action-tag findings.

deploy.yml publishes to WordPress.org, so this is the workflow where a moved tag would matter most. Worth a dry-run of the deploy workflow (dry_run input) after merge.

Not included: .yarnrc.yml npmMinimalAgeGate needs Yarn >= 4.10; repo is on 4.9.2. Separate PR.

🤖 Generated with Claude Code

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>
Copilot AI lite review requested due to automatic review settings October 16, 2026 07:56
@axeptio-bot
axeptio-bot self-requested a review October 16, 2026 07:56
@GH-ABN GH-ABN self-assigned this Oct 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 axeptio-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved by axeptio-bot: copilot-clean (review 5544656204, state=COMMENTED); coverage not stated by the review.

@GH-ABN
GH-ABN merged commit 2bfa27e into develop Oct 16, 2026
6 checks passed
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.

3 participants