Skip to content

Pin GitHub Actions to commit SHAs - #7175

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#7175
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/rest-api-description to immutable commit SHAs.

Summary

Metric Count
Files changed 7
Files scanned 6
Refs found 14
Refs pinned 14
Skipped refs 0
Warnings 2
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/add-to-project.yml:16 actions/add-to-project@main actions/add-to-project@cbad230d1debaae844a2c6f675327ab6c537e0f1 branch
.github/workflows/auto-merge-openapi-updates.yml:76 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/auto-merge-openapi-updates.yml:89 actions/setup-python@v5 actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 tag
.github/workflows/auto-merge-openapi-updates.yml:248 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/linter.yml:24 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/linter.yml:25 actions/setup-python@v5 actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 tag
.github/workflows/linter.yml:34 actions/setup-node@v4 actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 tag
.github/workflows/linter.yml:43 mattpage/redocly-cli-lint-action@v0.0.1 mattpage/redocly-cli-lint-action@63f131fbfd009e0e32d01ccae6dbfbed3706ad88 tag
.github/workflows/release-notifier.yml:12 gr2m/release-notifier-action@v1 gr2m/release-notifier-action@914377cb876747d1ee435f7ba20bdf42bcda2316 branch
.github/workflows/release.yml:17 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag
.github/workflows/release.yml:23 actions/create-release@v1 actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e tag
.github/workflows/release.yml:33 actions/upload-release-asset@v1 actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 tag
.github/workflows/scripts-tests.yml:23 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/scripts-tests.yml:24 actions/setup-python@v5 actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 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.

Warnings

Location Ref Reason
.github/workflows/add-to-project.yml:16 actions/add-to-project@main pinned mutable branch ref 'main' to cbad230d1deb; review carefully because the source branch can move
.github/workflows/release-notifier.yml:12 gr2m/release-notifier-action@v1 pinned mutable branch ref 'v1' to 914377cb8767; review carefully because the source branch can move

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 21:31

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 references resolve correctly, retain equivalent versions, and use valid Dependabot configuration.

Pull request overview

Pins GitHub Actions to immutable SHAs and configures Dependabot to maintain them securely.

Changes:

  • Pins 14 action references with version comments.
  • Pins two mutable branches to their current HEAD commits.
  • Adds weekly Dependabot updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/add-to-project.yml Pins the project action.
.github/workflows/auto-merge-openapi-updates.yml Pins checkout and Python setup actions.
.github/workflows/linter.yml Pins all lint workflow actions.
.github/workflows/release-notifier.yml Pins the notifier action.
.github/workflows/release.yml Pins release workflow actions.
.github/workflows/scripts-tests.yml Pins test workflow actions.
.github/dependabot.yml Enables delayed weekly action updates.
Review details
  • Files reviewed: 7/7 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