Skip to content

Pin GitHub Actions to commit SHAs - #600

Merged
fletchto99 merged 2 commits into
mainfrom
pinner/actions-sha-pins-2026-09-10
Sep 11, 2026
Merged

Pin GitHub Actions to commit SHAs#600
fletchto99 merged 2 commits 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
Contributor

Pins GitHub Actions uses: references in github/secure_headers to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 4
Refs pinned 4
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/build.yml:16 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/github-release.yml:16 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/github-release.yml:29 actions/create-release@v1 actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e tag
.github/workflows/github-release.yml:37 rubygems/release-gem@v1 rubygems/release-gem@7f9650160c1a4e7989fdc9855807bdbd421d8b6b 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/github-release.yml:37 rubygems/release-gem@v1 pinned mutable branch ref 'v1' to 7f9650160c1a; review carefully because the source branch can move

Generated by pinner 0.1.0.

@github-security-bot
github-security-bot requested review from a team and a balanced review from Copilot September 10, 2026 21:31

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 references are SHA-pinned and the Dependabot configuration is valid.

Pull request overview

Pins GitHub Actions dependencies to immutable SHAs and adds an update cooldown.

Changes:

  • Pins four action references with version comments.
  • Adds a seven-day Dependabot cooldown.
File summaries
File Description
.github/workflows/build.yml Pins checkout action.
.github/workflows/github-release.yml Pins release workflow actions.
.github/dependabot.yml Adds the action update cooldown.
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.

Use RSpec's attribute matcher instead of dynamic public_send calls so the copy assertion no longer needs a suppression for a cop missing from older rubocop-github versions. Keep coverage of every copied attribute without relaxing lint enforcement.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fletchto99
fletchto99 requested a review from a team September 11, 2026 16:07
@fletchto99
fletchto99 merged commit 86c108b into main Sep 11, 2026
16 checks passed
@fletchto99
fletchto99 deleted the pinner/actions-sha-pins-2026-09-10 branch September 11, 2026 16:42
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.

5 participants