Repository navigation
Pin GitHub Actions to immutable commit SHAs - #1628
Closed
Cedric Vidal (cedricvidal) wants to merge 5 commits into
Closed
Cedric Vidal (cedricvidal) wants to merge 5 commits into
Cedric Vidal (cedricvidal) wants to merge 5 commits into
Conversation
Add pinact and Vitest enforcement so mutable workflow references cannot regress. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Cedric Vidal (cedricvidal)
marked this pull request as ready for review
November 5, 2026 02:40
Cedric Vidal (cedricvidal)
requested a review
from Wassim Chegham (manekinekko)
as a code owner
November 5, 2026 02:40
Tell coding agents to use pinact and run both workflow policy checks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Activate GitHub Actions guidance only for workflow-related tasks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep activation metadata about applicability and leave instructions in the skill body. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the description limited to the applicable workflow task types. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Collaborator
Author
|
Superseded by #1630, which uses the branch hosted directly in microsoft/scope. |
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
Microsoft will require full-length commit SHA pinning for GitHub Actions beginning December 4, 2026. This change replaces all mutable external workflow references with immutable SHAs and exact version comments, then adds two regression layers: a dedicated validation-only pinact check and an independent Vitest repository invariant.
The pinact workflow uses read-only permissions, generated gh-aw lockfile annotation conventions remain generator-owned through narrowly scoped pinact rules, and a concise project skill activates pinning guidance only for GitHub Actions work.
Closes #1627
Demos
N/A - repository workflow security and CI validation only.
Before
N/A
After
N/A
Testing
pinact run --check --verify-comment- passed.pnpm exec vitest run scripts/ci-workflow.test.ts --reporter=default- passed, 34 tests..github/workflows/*.{yml,yaml}file.git diff --check- passed.pnpm lint- not completed because the existing workspace lint scripts invokeeslint, but no workspace package manifest declares that executable (eslint: command not found).Documentation and compatibility
Added the scoped
.agents/skills/github-actions/project skill and updatedCONTRIBUTING.mdwith the immutable action reference policy, required version annotations, pinact workflow, and validation commands. Project skills are user-controlled instruction data rather than Scope-owned runtime static prompt families, so no static prompt evaluation update is required. No API, CLI, data, or runtime compatibility changes. No dependency or lockfile changes.Checklist
up()/down()and keep it CosmosDB-compatible. N/A - no database changes.NOTICE/NOTICE-REVIEW.txtwithpnpm noticeas needed. N/A - no dependency changes.