Pin GitHub Actions to full-length commit SHAs - #1192
Merged
Jay Bosamiya (Microsoft) (jaybosamiya-ms) merged 1 commit intoAug 19, 2026
Merged
Jay Bosamiya (Microsoft) (jaybosamiya-ms) merged 1 commit into
Jay Bosamiya (Microsoft) (jaybosamiya-ms) merged 1 commit into
Conversation
Jay Bosamiya (Microsoft) (jaybosamiya-ms)
self-requested a review
August 19, 2026 20:24
Jay Bosamiya (Microsoft) (jaybosamiya-ms)
approved these changes
Aug 19, 2026
Jay Bosamiya (Microsoft) (jaybosamiya-ms)
left a comment
Member
There was a problem hiding this comment.
Thanks Dan, the changes look good to me. As a heads up, I'll rewrite the PR description to shorten it before I merge it in, since that becomes part of the git history with the merge queues we use.
Sidenote: for future reference, quick script to validate the commit hashes:
grep -rhoP 'uses:\s*\K[\w.-]+/[\w.-]+@[0-9a-f]+\s*#\s*v?[\w.-]+' .github/workflows/ \
| sed 's/#//' | sort -u \
| while read -r ref tag; do
repo=${ref%@*}; sha=${ref#*@}
actual=$(gh api "repos/$repo/git/ref/tags/$tag" --jq '.object.sha' 2>/dev/null)
typ=$(gh api "repos/$repo/git/ref/tags/$tag" --jq '.object.type' 2>/dev/null)
[ "$typ" = tag ] && actual=$(gh api "repos/$repo/git/tags/$actual" --jq '.object.sha')
if [ "$actual" = "$sha" ]; then echo "OK $repo $tag"; else echo "BAD $repo $tag: comment=$tag sha=$sha actual=$actual"; fi
done
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.
This PR pins GitHub Actions to full-length commit SHAs and adds a 7 day cooldown to Dependabot configuration for GitHub Actions. See more detail at https://aka.ms/action-pinning.