Skip to content

Pin GitHub Actions to commit SHAs - #32

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#32
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/version_sorter to immutable commit SHAs.

Summary

Metric Count
Files changed 2
Files scanned 1
Refs found 2
Refs pinned 2
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/test.yml:17 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag
.github/workflows/test.yml:18 ruby/setup-ruby@v1 ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b branch

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.

Warnings

Location Ref Reason
.github/workflows/test.yml:18 ruby/setup-ruby@v1 pinned mutable branch ref 'v1' to 95ef2b042f9d; review carefully because the source branch can move

Generated by pinner 0.1.0.

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

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

Both pinned SHAs match their documented tags, and the Dependabot configuration is valid.

Pull request overview

Pins GitHub Actions dependencies to verified immutable SHAs and adds a seven-day Dependabot cooldown.

Changes:

  • Pins actions/checkout and ruby/setup-ruby to matching release SHAs.
  • Adds a seven-day update cooldown.
File summaries
File Description
.github/workflows/test.yml Pins workflow actions to immutable SHAs.
.github/dependabot.yaml Configures the update cooldown.
Review details
  • Files reviewed: 2/2 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