ci: pin third-party GitHub Actions to verified release SHAs - #277
Open
Vamshi-Microsoft wants to merge 1 commit into
Open
ci: pin third-party GitHub Actions to verified release SHAs#277Vamshi-Microsoft wants to merge 1 commit into
Vamshi-Microsoft wants to merge 1 commit into
Conversation
Vamshi-Microsoft
requested review from
Avijit-Microsoft,
Prajwal1-Microsoft,
Roopan-Microsoft,
VinaySh-Microsoft,
gpickett,
malrose07 and
Todd Herman (toherman-msft)
as code owners
June 30, 2026 05:29
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions workflows by removing a previously compromised third-party action, switching to a built-in git diff approach for changed Markdown detection, and pinning third-party actions to immutable commit SHAs to reduce supply-chain risk.
Changes:
- Replaced
tj-actions/changed-fileswith agit diffstep that emits compatibleany_changed/all_changed_filesoutputs for the lychee broken-link check. - Pinned
lycheeverse/lychee-action,amannn/action-semantic-pull-request, andMishaKav/pytest-coverage-commentto specific commit SHAs with version comments.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/broken-links-checker.yml |
Removes tj-actions/changed-files, uses git diff outputs, and pins lychee-action to a commit SHA. |
.github/workflows/pr-title-checker.yml |
Pins action-semantic-pull-request to a commit SHA. |
.github/workflows/tests.yaml |
Pins pytest-coverage-comment to a commit SHA. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Vamshi-Microsoft
force-pushed
the
ci/pin-actions-and-git-diff
branch
from
June 30, 2026 06:28
c874890 to
366f66b
Compare
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.
Purpose
Harden CI/CD against supply-chain attacks by pinning third-party actions to verified release commit SHAs.
tj-actions/changed-filesinbroken-links-checker.ymlwith a built-ingit diffstep. The new step detects changed markdown files between the PR base and head SHAs and preserves theany_changed/all_changed_filesoutputs consumed by the lychee step — zero third-party dependency.lycheeverse/lychee-action→8646ba3(v2.8.0)amannn/action-semantic-pull-request→48f2562(v6.1.1)MishaKav/pytest-coverage-comment→e48ae95(v1.8.0)Does this introduce a breaking change?
How to Test
(Validated on a throwaway PR: the git-diff step listed the changed file and lychee failed only on the broken link, exit code 2.)
What to Check
Verify that the following are valid
tj-actions/changed-files.permissions:(pull-requests: readfor pr-title-checker,pull-requests: writefor tests).Other Information
Changed files:
.github/workflows/broken-links-checker.yml.github/workflows/pr-title-checker.yml.github/workflows/tests.yaml