Skip to content

Pin GitHub Actions to commit SHAs - #821

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#821
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/platform-samples to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 5
Refs pinned 5
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/codeql.yml:43 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/codeql.yml:47 github/codeql-action/init@v2 github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 tag
.github/workflows/codeql.yml:61 github/codeql-action/autobuild@v2 github/codeql-action/autobuild@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 tag
.github/workflows/codeql.yml:74 github/codeql-action/analyze@v2 github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 tag
.github/workflows/combine-prs.yml:38 actions/github-script@v6 actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 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:30

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 SHAs match their documented tags, and the Dependabot configuration is valid.

Pull request overview

Pins all GitHub Actions references to immutable commit SHAs and configures Dependabot to maintain them.

Changes:

  • Pins five action references while preserving version comments.
  • Adds weekly GitHub Actions updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/combine-prs.yml Pins github-script to its v6.4.1 SHA.
.github/workflows/codeql.yml Pins checkout and CodeQL actions to matching SHAs.
.github/dependabot.yml Enables delayed 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