Skip to content

Pin GitHub Actions to commit SHAs - #1765

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

Pin GitHub Actions to commit SHAs#1765
github-security-bot wants to merge 1 commit into
masterfrom
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/gh-ost to immutable commit SHAs.

Summary

Metric Count
Files changed 5
Files scanned 5
Refs found 13
Refs pinned 13
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/ci.yml:13 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/ci.yml:16 actions/setup-go@v6 actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 tag
.github/workflows/ci.yml:24 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/codeql.yml:27 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/codeql.yml:30 github/codeql-action/init@v4 github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/codeql.yml:35 github/codeql-action/analyze@v4 github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/golangci-lint.yml:16 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/golangci-lint.yml:17 actions/setup-go@v6 actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 tag
.github/workflows/golangci-lint.yml:21 golangci/golangci-lint-action@v9 golangci/golangci-lint-action@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a tag
.github/workflows/release.yml:23 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/release.yml:61 actions/attest-build-provenance@v4 actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 tag
.github/workflows/replica-tests.yml:18 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/replica-tests.yml:39 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a 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:27

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 action SHAs resolve to the documented versions, and every workflow reference is pinned consistently.

Pull request overview

Pins all 13 GitHub Actions references to verified immutable commit SHAs while retaining version comments for Dependabot.

Changes:

  • Pins CI, lint, CodeQL, release, and replica-test actions.
  • Preserves corresponding version tags in inline comments.
File summaries
File Description
.github/workflows/ci.yml Pins build workflow actions.
.github/workflows/codeql.yml Pins CodeQL actions.
.github/workflows/golangci-lint.yml Pins lint workflow actions.
.github/workflows/release.yml Pins release and attestation actions.
.github/workflows/replica-tests.yml Pins replica-test workflow actions.
Review details
  • Files reviewed: 5/5 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