Skip to content

Pin GitHub Actions to commit SHAs - #4808

Open
github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10
Open

Pin GitHub Actions to commit SHAs#4808
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/copilot-cli to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 3
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/close-single-word-issues.yml:17 actions/github-script@v7 actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b tag
.github/workflows/no-response.yml:16 actions/stale@v9 actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 tag
.github/workflows/stale-issues.yml:13 actions/stale@v9 actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 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.

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

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

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

Pull request overview

Pins GitHub Actions to immutable SHAs and configures automated updates.

Changes:

  • Pins three action references to verified release commits.
  • Adds weekly Dependabot updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/stale-issues.yml Pins actions/stale to v9.1.0’s SHA.
.github/workflows/no-response.yml Pins actions/stale to v9.1.0’s SHA.
.github/workflows/close-single-word-issues.yml Pins actions/github-script to v7.1.0’s SHA.
.github/dependabot.yml Configures weekly action updates and 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