Repository navigation
ci(actions): pin actions to commit SHAs - #122
Merged
Merged
Conversation
Replace tag and branch refs with full commit SHAs and a version comment, which Dependabot keeps current. No behavior change: each SHA is the commit the previous ref pointed to.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change that pins GitHub Actions and reusable workflows to full commit SHAs.
No open issues 🎉
What changed in this PR
This PR hardens the repository’s GitHub Actions workflows by replacing mutable action references with full commit SHAs.
Changes:
- Pins 25 action and reusable-workflow references across three workflow files.
- Adds trailing version comments to keep pinned references readable.
- Leaves workflow steps, inputs, and conditions unchanged.
| File | Description |
|---|---|
.github/workflows/dependency-submission.yml |
Pins checkout, SDK setup, and dependency-submission actions. |
.github/workflows/codeql.yml |
Pins checkout, .NET setup, and CodeQL actions. |
.github/workflows/ci.yml |
Pins shared workflows and actions for builds, artifacts, publishing, deployment, and releases. |
Review effort: Balanced
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
Pin every third-party and shared
uses:ref to a full commit SHA, with the version in a trailing# vX.Y.Zcomment. 25 refs in 3 file(s); no other line changed.NuGet/login:v1→v1.2.0actions/checkout:v7→v7.0.1actions/deploy-pages:v5→v5.0.1actions/download-artifact:v8→v8.0.2actions/setup-dotnet:v6→v6.1.0actions/setup-java:v6→v6.3.0actions/upload-artifact:v7→v7.0.2actions/upload-pages-artifact:v5→v5.0.0advanced-security/component-detection-dependency-submission-action:v0.2.0→v0.2.0github/codeql-action:v4→v4.39.4laerdal/github_actions:main→v1.0.83Why
A tag or branch ref can be moved to different code, a full commit SHA can't. The comment keeps the pin readable and lets Dependabot bump the SHA and the comment together. Each SHA is the commit its previous ref points to today, so behavior is unchanged.
Change Type
refa)Affected Areas
Bluetooth.Maui)Behavior And Compatibility
If any box above is checked, describe impact:
Platform Notes
List platform-specific behavior differences introduced or touched.
Tests
Validation notes: SHAs resolved from the GitHub API; a script checked that every changed line is a
uses:line and that no non-self ref is left unpinned. The CI run on this PR exercises the pinned refs.Documentation
Logging / Diagnostics
Risks And Follow-ups
Risk level:
Known limitations or deferred follow-ups:
main; pinning those is a follow-up in that repo.Checklist
type (scope): short imperativeand is <= 72 chars