Repository navigation
Explain missing release versions when pinning the install action by SHA - #2902
Open
im-xiangda-li wants to merge 1 commit into
Open
im-xiangda-li wants to merge 1 commit into
im-xiangda-li wants to merge 1 commit into
Conversation
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.
What
Closes #2874. The install action validates the selected CLI release version at the version step and shows how to set
with.versionwhen the action is pinned to a commit SHA. The README now includes a SHA-pinning example.Why
Without an explicit version, a SHA pin previously became the CLI version and produced a release download URL that returned HTTP 404 after retries. Rejecting that input during version selection gives the caller an actionable error. Release-tag refs and valid explicit versions still produce the same release version for download and attestation.
Known limitations
I ran the actual Bash version step locally. The original step accepted a SHA as the release version. The fixed step passed seven cases covering release tags, explicit versions, prerelease suffixes, and missing versions on SHA, branch, and local refs. The end-to-end GitHub Actions job has not run locally.