Skip to content

setup action: police its own uses: ref like aggregate does - #68

Merged
lann merged 1 commit into
mainfrom
setup-ref-check
Aug 7, 2026
Merged

setup action: police its own uses: ref like aggregate does#68
lann merged 1 commit into
mainfrom
setup-ref-check

Conversation

@lann

@lann lann commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Extends #57's ruling to the second action: actions/setup already derives the pin from the consumer's Cargo.lock, so it now compares github.action_ref against it — fail on 40-hex skew, notice-and-skip for branch/tag/local refs (the in-repo smoke uses ./actions/setup). Without this, adoption PRs pinning setup@<rev> would carry exactly the unguarded literal the aggregate check just removed.

The aggregate action's ref check (#57) closed the unguarded-literal
problem for one action; consumers adopting actions/setup@<rev> would
reintroduce it on the other. The setup action already reads the
Cargo.lock pin, so the comparison is one step: a 40-hex action ref
that differs from the pin fails; branch/tag/local refs (this repo's
own smoke uses ./actions/setup) skip with a notice.
@lann
lann merged commit d5987b4 into main Aug 7, 2026
3 checks passed
@lann
lann deleted the setup-ref-check branch August 7, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant