Skip to content

security(ci): pin GitHub Actions to commit SHAs and fix template injection - #322

Merged
xavidop merged 1 commit into
mainfrom
security/pin-github-actions-sha
Aug 31, 2026
Merged

security(ci): pin GitHub Actions to commit SHAs and fix template injection#322
xavidop merged 1 commit into
mainfrom
security/pin-github-actions-sha

Conversation

@xavidop

@xavidop xavidop commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Pins all uses: action references in codeql.yml, java.yml, publish-docs.yml, and release.yml to a commit SHA (with the version tag kept as a trailing comment), per zizmor's unpinned-uses mandatory check.
  • Fixes a template-injection finding in release.yml by passing needs.release.outputs.version through env instead of interpolating it directly into the run: shell script.

This was blocking dependabot PR #316 (actions/setup-java 5→6) — the GitHub Actions Scan / zizmor job fails on any PR that touches a workflow file, and it flags every workflow file's existing unpinned actions, not just the diff.

Test plan

  • CI passes (zizmor GitHub Actions Scan should go green)

…ction

zizmor's mandatory checks (unpinned-uses, template-injection) started
failing on dependabot PRs that touch workflow files. Pin all actions
to a commit SHA (with the version as a trailing comment) and pass the
release-please version through env instead of interpolating it
directly into the release.yml shell script.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@xavidop
xavidop merged commit 257ffc7 into main Aug 31, 2026
9 of 10 checks passed
@xavidop
xavidop deleted the security/pin-github-actions-sha branch August 31, 2026 23:51
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.

1 participant