Skip to content

Pin GitHub Actions to commit SHAs - #184

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/codeql-action-sync-tool to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 3
Refs found 19
Refs pinned 19
Skipped refs 0
Warnings 0
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:18 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:20 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/ci.yml:26 goreleaser/goreleaser-action@v6 goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a tag
.github/workflows/ci.yml:36 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:38 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/ci.yml:50 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:52 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/ci.yml:67 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:69 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/ci.yml:80 golangci/golangci-lint-action@v8 golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 tag
.github/workflows/ci.yml:89 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:91 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/ci.yml:95 jonabc/setup-licensed@v1 jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 tag
.github/workflows/codeql.yml:20 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/codeql.yml:26 github/codeql-action/init@v3 github/codeql-action/init@faaca9a8f6edddba5725ffe5adefdab6669a2eca tag
.github/workflows/codeql.yml:30 github/codeql-action/analyze@v3 github/codeql-action/analyze@faaca9a8f6edddba5725ffe5adefdab6669a2eca tag
.github/workflows/release.yml:14 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/release.yml:18 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/release.yml:24 goreleaser/goreleaser-action@v6 goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a tag

Dependabot

  • Added a 7-day cooldown (cooldown: default-days: 7) to the existing github-actions Dependabot configuration.
  • The cooldown delays applying a newly published action release for 7 days, reducing exposure to a compromised or broken release while keeping you SHA-pinned.

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 21:24

Copilot AI 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.

🟢 Approval recommended

All references use valid full SHAs matching their documented tags, and the Dependabot configuration is valid.

Pull request overview

Pins all GitHub Actions references to verified immutable SHAs and adds a Dependabot cooldown.

Changes:

  • Pins 19 action references while retaining version comments.
  • Adds a seven-day GitHub Actions update cooldown.
File summaries
File Description
.github/workflows/ci.yml Pins CI actions.
.github/workflows/codeql.yml Pins CodeQL actions.
.github/workflows/release.yml Pins release actions.
.github/dependabot.yml Adds the update cooldown.
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