ci: pin GitHub Actions to commit SHAs (7) - #10133
Conversation
|
Hi @mirkosalvato1-ctrl, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR reduces GitHub Actions supply-chain risk by pinning third-party uses: references to immutable commit SHAs (while keeping the original tag noted in an inline comment) in several CI workflows.
Changes:
- Pinned
azure/loginandazure/cliaction references from@v2to full commit SHAs in release-trigger workflows. - Pinned
actions/github-scriptfrom@v7to a full commit SHA in PR-governance workflows.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/TriggerExtensionRelease.yml |
Pins azure/login and azure/cli to commit SHAs for the extension release trigger workflow. |
.github/workflows/TestTriggerExtensionRelease.yml |
Pins azure/login and azure/cli to commit SHAs for the test trigger workflow. |
.github/workflows/CCOA.yml |
Pins actions/github-script to a commit SHA for labeling/commenting automation. |
.github/workflows/BlockPRMerge.yml |
Pins actions/github-script to a commit SHA for label-based merge blocking. |
| - name: Add do-not-merge label | ||
| if: steps.date_check.outputs.continue == 'true' | ||
| uses: actions/github-script@v7 | ||
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 |
|
ci |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
hi @mirkosalvato1-ctrl please reply microsoft-github-policy-service |
|
@mirkosalvato1-ctrl please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Why
Mutable Action tags (
@v4,@main) can be retagged, which is a supply-chain risk.This PR pins third-party Actions to full commit SHAs while keeping the tag in a comment.
Official
actions/*tags are left unchanged (common maintainer preference).Pins
actions/github-script@v7 -> f28e40c7f34bactions/github-script@v7 -> f28e40c7f34bactions/github-script@v7 -> f28e40c7f34bazure/login@v2 -> a457da9ea143azure/cli@v2 -> 9f7ce6f37c31azure/login@v2 -> a457da9ea143azure/cli@v2 -> 9f7ce6f37c31Reference: GitHub docs on using third-party actions securely.
🤖 PR Validation — ️✔️ All clear