Skip to content

Pin GitHub Actions to commit SHAs - #1609

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#1609
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/gh-gei to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 3
Refs found 25
Refs pinned 25
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/CI.yml:32 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/CI.yml:39 github/codeql-action/init@v4 github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/CI.yml:46 actions/setup-dotnet@v5 actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 tag
.github/workflows/CI.yml:79 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/CI.yml:87 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/CI.yml:93 github/codeql-action/analyze@v4 github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 tag
.github/workflows/CI.yml:104 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/CI.yml:120 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/CI.yml:127 actions/setup-dotnet@v5 actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 tag
.github/workflows/CI.yml:144 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/CI.yml:176 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/CI.yml:181 actions/setup-dotnet@v5 actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 tag
.github/workflows/CI.yml:186 actions/download-artifact@v7 actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 tag
.github/workflows/CI.yml:301 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/CI.yml:328 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/CI.yml:349 actions/setup-dotnet@v5 actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 tag
.github/workflows/copilot-setup-steps.yml:21 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/copilot-setup-steps.yml:24 actions/setup-dotnet@v2 actions/setup-dotnet@8e6bd2905eef86446227f003dda1deb3916c4aaf tag
.github/workflows/integration-tests.yml:26 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/integration-tests.yml:45 actions/setup-dotnet@v2 actions/setup-dotnet@8e6bd2905eef86446227f003dda1deb3916c4aaf tag
.github/workflows/integration-tests.yml:74 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f tag
.github/workflows/integration-tests.yml:101 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/integration-tests.yml:114 actions/setup-dotnet@v2 actions/setup-dotnet@8e6bd2905eef86446227f003dda1deb3916c4aaf tag
.github/workflows/integration-tests.yml:119 actions/download-artifact@v7 actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 tag
.github/workflows/integration-tests.yml:236 actions/upload-artifact@v6 actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 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:27

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 workflow action references are full commit SHAs, and the Dependabot configuration is correctly scoped.

Pull request overview

Pins GitHub Actions dependencies to immutable commits to reduce supply-chain risk.

Changes:

  • Pins 25 action references to full commit SHAs.
  • Adds a seven-day Dependabot cooldown for GitHub Actions.
File summaries
File Description
.github/workflows/CI.yml Pins CI action dependencies.
.github/workflows/integration-tests.yml Pins integration-test actions.
.github/workflows/copilot-setup-steps.yml Pins development-environment setup actions.
.github/dependabot.yml Adds the action update 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.

@github-actions

Copy link
Copy Markdown

Unit Test Results

    1 files      1 suites   24s ⏱️
1 175 tests 1 175 ✅ 0 💤 0 ❌
1 176 runs  1 176 ✅ 0 💤 0 ❌

Results for commit 71e0d78.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
gl2gh 77% 70% 417
gei 81% 74% 688
Octoshift 80% 70% 2044
bbs2gh 83% 78% 668
ado2gh 71% 70% 749
Summary 79% (9023 / 11414) 72% (2316 / 3217) 4566

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