Repository navigation
Conversation
This branch has not been deployed
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.
Description
PR starter validation can fail on branches that predate a helper script added on
main: the workflow definition comes from the PR's synthetic merge commit, but starter validation explicitly checks out the unmerged PR head. A newer workflow step can therefore call a script that is missing from its checkout.Use
${{ github.sha }}for all six PR starter-validation callers so their helper scripts come from the same pinned merge commit as the workflow definition and the CLI artifacts built by that run. Reopening an older, mergeable PR can then use the current merged result without requiring the author to merge or rebasemain; rerunning an existing run retains its original merge SHA.Rename the reusable workflow's checkout step to "Checkout validation commit" to reflect the caller-provided ref. The manually dispatched platform-smoke caller retains its existing explicit source ref. No dependencies, action pins, permissions, or job-selection gates change.
Fixes #22667
Validation
bash .github/workflows/lint-handwritten-workflows.sh- passed for all 57 handwritten workflows using repository-pinned actionlint 1.7.12.git diff --check- passed.df332a15was paired with checkout7f0ad43a. Confirmed the missing diagnostics helper exists at the workflow's merge commit.tests.ymlwithALLandcli-starter-validation.ymlwithjob:cli-starter-validation; no map changes are needed.Checklist
<remarks />and<code />elements on your triple slash comments?Created from a Teams conversation with Jose Perez Rodriguez (@joperezr).