Skip to content

Pin GitHub Actions to commit SHAs - #270

Merged
kendallgassner merged 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10
Sep 11, 2026
Merged

kendallgassner merged 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
Contributor

Pins GitHub Actions uses: references in github/accessibility-scanner to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 3
Refs pinned 3
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/lint.yml:26 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/lint.yml:29 actions/setup-node@v7 actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 tag
.github/workflows/test.yml:34 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 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:22
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:22

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.

🟡 Changes recommended

Three mutable checkout references remain in the repository’s composite actions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

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

Changes:

  • Pins checkout and Node setup actions.
  • Adds a GitHub Actions update cooldown.
  • Leaves three composite-action checkout references unpinned.
File summaries
File Description
.github/workflows/test.yml Pins checkout.
.github/workflows/lint.yml Pins checkout and setup-node.
.github/dependabot.yml Adds the cooldown.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

steps:
- name: Checkout
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@kendallgassner
kendallgassner merged commit e18c636 into main Sep 11, 2026
8 checks passed
@kendallgassner
kendallgassner deleted the pinner/actions-sha-pins-2026-09-10 branch September 11, 2026 16:18
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.

3 participants