Skip to content

Pin GitHub Actions to commit SHAs - #1389

Merged
mlinksva merged 1 commit into
gh-pagesfrom
pinner/actions-sha-pins-2026-09-10
Sep 10, 2026
Merged

mlinksva merged 1 commit into
gh-pagesfrom
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/choosealicense.com to immutable commit SHAs.

Summary

Metric Count
Files changed 2
Files scanned 1
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/codeql.yml:62 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/codeql.yml:72 github/codeql-action/init@v4 github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/codeql.yml:101 github/codeql-action/analyze@v4 github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 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: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 SHAs match their documented tags, and the Dependabot configuration is valid.

Pull request overview

Pins CodeQL workflow actions to immutable SHAs and enables automated weekly action updates.

Changes:

  • Pins checkout and CodeQL actions with version comments.
  • Adds a seven-day Dependabot cooldown.
File summaries
File Description
.github/workflows/codeql.yml Pins three action references.
.github/dependabot.yml Configures weekly action updates.
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.

@mlinksva
mlinksva merged commit 92a070f into gh-pages Sep 10, 2026
7 of 8 checks passed
@mlinksva
mlinksva deleted the pinner/actions-sha-pins-2026-09-10 branch September 10, 2026 21:58
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