Skip to content

Pin GitHub Actions to commit SHAs - #197

Open
github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10
Open

github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10

Conversation

@github-security-bot

@github-security-bot github-security-bot commented Sep 10, 2026

Copy link
Copy Markdown

Pins GitHub Actions uses: references in github/dependency-submission-toolkit to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 4
Refs found 10
Refs pinned 10
Skipped refs 0
Warnings 1
Errors 0

Why

Pinning actions to full commit SHAs prevents future tag or branch retargeting from changing workflow behavior without review.

Reviewer notes

  • Original refs are preserved in inline comments when possible.
  • Pin comments use the Dependabot-compatible original-ref style.
  • Branch refs were allowed and pinned to their current HEAD; review mutable-branch pins carefully.
  • No minimum action age was enforced for this run.

Pinned refs

Location Before After Resolved as
.github/workflows/codeql-analysis.yml:41 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/codeql-analysis.yml:45 github/codeql-action/init@v4 github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/codeql-analysis.yml:59 github/codeql-action/autobuild@v4 github/codeql-action/autobuild@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/codeql-analysis.yml:72 github/codeql-action/analyze@v4 github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/dependency-submission-example.yml:12 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/dependency-submission-example.yml:13 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag
.github/workflows/publish.yml:15 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/publish.yml:16 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag
.github/workflows/test.yml:20 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/test.yml:21 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag

Warnings

Location Ref Reason
.github/dependabot.yml `` .github/dependabot.yml left unchanged: github-actions ecosystem present in an unrecognized or complex form

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 21:25
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:25

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 10 action references use valid full commit SHAs matching the documented releases.

Pull request overview

Pins all workflow actions to verified immutable commit SHAs, reducing supply-chain risk.

Changes:

  • Pins checkout, Node setup, and CodeQL actions.
  • Preserves release versions in inline comments.
File summaries
File Description
.github/workflows/test.yml Pins test workflow actions.
.github/workflows/publish.yml Pins publishing workflow actions.
.github/workflows/dependency-submission-example.yml Pins example workflow actions.
.github/workflows/codeql-analysis.yml Pins checkout and CodeQL actions.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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