Repository navigation
fix: validate optional release workflow pins without requiring unused files - #168
Merged
Merged
Conversation
Compare presence before inspecting trusted release workflow pins. Skip files absent from both revisions but reject unilateral additions or removals, including files with no tracked action pins. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Publish the verified optional workflow pin checking fix as a patch version for the Extract first-release pipeline. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This was referenced Nov 22, 2026
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.
Problem
The Extract release preparation workflow invokes
release:pipeline-verifywithprepare-release.yml,release-metadata.yml,nightly-release.ymlandappstore-build-publish.yml. The last two do not exist on eithermainor the stable branches. Release Tool 0.12.0 rejects the absent files before it can prepare a release PR (Extract Actions run 45076655337).Solution
Use the existing
GitRepository::fileExistscontract beforereadFile. Ignore an optional file only if it is absent in both the candidate and trusted reference. Reject an unexpected addition or deletion even if neither side lists any tracked action pins. The remaining present workflows are still checked against the trusted main reference.Evidence
release:pipeline-verifyon Extractorigin/stable33against trustedorigin/mainwith the full four-file list:aligned: true, without weakening the check on present workflows.Release integration
This fixes the first Extract release blocker; after merge publish a patch release of Release Tool, update the immutable action pins on Extract main/stables, then rerun its official prepare-release workflow. Preserve signed DCO commits; do not squash.