Skip to content

Pin GitHub Actions to commit SHAs - #175

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/smimesign to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 8
Refs pinned 8
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/build-binaries.yml:17 actions/setup-go@v2 actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 tag
.github/workflows/build-binaries.yml:21 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag
.github/workflows/build-binaries.yml:40 actions/upload-artifact@v4 actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 tag
.github/workflows/build-binaries.yml:63 actions/setup-go@v2 actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 tag
.github/workflows/build-binaries.yml:67 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag
.github/workflows/build-binaries.yml:125 actions/upload-artifact@v4 actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 tag
.github/workflows/test-go.yml:16 actions/setup-go@v2 actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 tag
.github/workflows/test-go.yml:20 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag

Dependabot

  • Added .github/dependabot.yml enabling weekly github-actions updates with a 7-day cooldown (cooldown: default-days: 7).
  • 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:32

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 resolve correctly and the Dependabot configuration is valid.

Pull request overview

Pins GitHub Actions to immutable SHAs and configures automated weekly updates.

Changes:

  • Pins eight action references with version comments.
  • Adds a seven-day Dependabot cooldown.
File summaries
File Description
.github/workflows/test-go.yml Pins test workflow actions.
.github/workflows/build-binaries.yml Pins build and artifact actions.
.github/dependabot.yml Enables weekly action updates.
Review details
  • Files reviewed: 3/3 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