Repository navigation
Pin GitHub Actions to full-length commit SHAs - #273
Merged
Rick Brighenti (rbrighenti) merged 1 commit intoOct 23, 2026
Merged
Conversation
Pin every GitHub Actions `uses:` reference to a full-length commit SHA with a trailing version comment (https://aka.ms/action-pinning). Each action stays on its current major version, pinned to the commit of the latest release in that major: - actions/checkout v4.4.0 - actions/setup-dotnet v4.3.1 - actions/upload-artifact v4.6.2 - actions/dependency-review-action v4.9.0 Add a Dependabot github-actions config with a 7-day cooldown to keep the pins up to date. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The pins match upstream releases, and no blocking issues remain in the workflow or Dependabot changes.
No open issues 🎉
What changed in this PR
Hardens the SDK’s CI workflows by replacing mutable action tags with commit pins and automating pin updates.
Changes:
- Pins all five action references to full-length SHAs with version comments.
- Adds grouped weekly Dependabot updates with a seven-day cooldown.
| File | Description |
|---|---|
.github/workflows/dependency-review.yml |
Pins checkout and dependency-review actions. |
.github/workflows/ci.yml |
Pins checkout, .NET setup, and artifact upload actions. |
.github/dependabot.yml |
Configures grouped weekly action updates and cooldown. |
Review effort: Balanced
dbezic (dbezic)
approved these changes
Oct 21, 2026
dbezic (dbezic)
approved these changes
Oct 21, 2026
Krishnadheeraj (DheerajPannala)
approved these changes
Oct 23, 2026
Rick Brighenti (rbrighenti)
deleted the
users/rbrighenti/pin-dotnet-github-actions
branch
October 23, 2026 16:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins every GitHub Actions
uses:reference in this repo to a full-length (40-character) commit SHA with a trailing version comment, and adds a Dependabotgithub-actionsconfig to keep the pins up to date. This is Microsoft's upcoming GitHub requirement: https://aka.ms/action-pinning.Replaces #264, which was opened from a fork and closed without merging. This branch is in
microsoft/Agent365-dotnet, so CI gets the repo secrets and variables it needs (AZURE_OPENAI_*).Pinned actions
actions/checkout@v4@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0ci.yml,dependency-review.ymlactions/setup-dotnet@v4@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1ci.ymlactions/upload-artifact@v4@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2ci.ymlactions/dependency-review-action@v4@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0dependency-review.ymlEach action stays on its current major version and is pinned to the commit of the latest release in that major. I resolved each SHA from the action's own repo. All four release tags are lightweight tags that point directly at commits. Each SHA is also the commit that
@v4resolves to today, so action behavior doesn't change.Dependabot
New
.github/dependabot.ymlwith weeklygithub-actionsupdates, grouped into a single PR. It setscooldown.default-days: 7, so a new release isn't proposed until it has been public for a week. This config matches the other A365 repos: microsoft/Agent365-python#277, microsoft/Agent365-nodejs#309, microsoft/Agent365-devTools#506, microsoft/Agent365-Samples#342 and microsoft/agent365-skills#79.How to verify
gh api repos/actions/checkout/commits/v4.4.0 --jq .shareturns the pinned SHA. The same check works for the other tags.