Skip to content

chore: pin third-party actions to commit SHAs - #16

Merged
erwan-joly merged 1 commit into
masterfrom
harden/pin-third-party-actions
Sep 10, 2026
Merged

chore: pin third-party actions to commit SHAs#16
erwan-joly merged 1 commit into
masterfrom
harden/pin-third-party-actions

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Pins every non-GitHub-owned action in this repo to a full-length commit SHA, keeping the version tag as a trailing comment.

A tag is a moving pointer — whoever controls the upstream repo (or compromises that maintainer's account) can repoint it and change what executes here. These steps run with contents: write or cloud credentials in scope, so that matters.

No version changes: each SHA is the exact commit the pinned tag resolved to today. Part of a sweep across the org so sha_pinning_required can be turned on afterwards.

Summary by CodeRabbit

  • Chores
    • Pinned the release automation action to a specific version for more consistent and reliable release processing.

Tags are mutable, so a moved tag silently changes what runs in CI. The
version each SHA came from is kept as a trailing comment.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 10, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: ef456676-7474-4e09-af92-1fe964270b30

📥 Commits

Reviewing files that changed from the base of the PR and between c5b0fdd and e0f6760.

📒 Files selected for processing (1)
  • .github/workflows/dotnet.yml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The release workflow now pins softprops/action-gh-release to a specific commit SHA instead of the floating v2 tag.

Changes

Release workflow

Layer / File(s) Summary
Pin rolling release action
.github/workflows/dotnet.yml
The “Create rolling release” step uses commit 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65, with a v2 comment.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to e0f67

The release workflow now uses an immutable SHA for the v2 release action, preserving behavior while preventing tag drift. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: pinning third-party GitHub Actions to commit SHAs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch harden/pin-third-party-actions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@erwan-joly
erwan-joly merged commit 267726f into master Sep 10, 2026
3 checks passed
@erwan-joly
erwan-joly deleted the harden/pin-third-party-actions branch September 10, 2026 11:52
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.

1 participant