Skip to content

Pin GitHub Actions to commit SHAs - #43

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

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/cost-center-automation to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 13
Refs pinned 13
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/cost-center-automation.yml:26 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/cost-center-automation.yml:29 actions/setup-python@v6 actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 tag
.github/workflows/cost-center-automation.yml:38 actions/cache/restore@v4 actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 tag
.github/workflows/cost-center-automation.yml:86 actions/cache/save@v4 actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 tag
.github/workflows/cost-center-automation.yml:106 actions/upload-artifact@v5 actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 tag
.github/workflows/cost-center-sync-cached.yml:32 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/cost-center-sync-cached.yml:35 actions/setup-python@v6 actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 tag
.github/workflows/cost-center-sync-cached.yml:45 actions/cache@v4 actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 tag
.github/workflows/cost-center-sync-cached.yml:88 actions/upload-artifact@v5 actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 tag
.github/workflows/cost-center-sync-cached.yml:102 actions/checkout@v5 actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 tag
.github/workflows/cost-center-sync-cached.yml:105 actions/setup-python@v6 actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 tag
.github/workflows/cost-center-sync-cached.yml:115 actions/download-artifact@v6 actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 tag
.github/workflows/cost-center-sync-cached.yml:135 actions/upload-artifact@v5 actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 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:25
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:25

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 release tags, and the Dependabot configuration is valid.

Pull request overview

Pins all GitHub Actions dependencies to verified immutable SHAs and adds a Dependabot cooldown.

Changes:

  • Pins 13 action references with version comments.
  • Adds a 7-day GitHub Actions update cooldown.
File summaries
File Description
.github/workflows/cost-center-automation.yml Pins five action references.
.github/workflows/cost-center-sync-cached.yml Pins eight action references.
.github/dependabot.yaml Adds the cooldown policy.
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.

3 participants