Skip to content

Fix validator to catch invalid step-level uses refs - #1764

Merged
v1v merged 1 commit into
mainfrom
fix-1763-validate-uses-step-ref-9fcac35f82265080
Aug 27, 2026
Merged

Fix validator to catch invalid step-level uses refs#1764
v1v merged 1 commit into
mainfrom
fix-1763-validate-uses-step-ref-9fcac35f82265080

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update scripts/validate-uses-references.sh to match both uses: and step-level - uses: lines
  • detect malformed references like - uses: actions/checkout@ that previously slipped through

Why

The validator only matched lines beginning with uses: and missed standard step syntax (- uses:), so invalid empty refs could pass local checks and fail later in GitHub Actions.

Validation

  • ran ./scripts/validate-uses-references.sh in this repository
  • reproduced issue behavior in an isolated temp workspace and confirmed the script now exits non-zero for - uses: actions/checkout@

Closes #1763


What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Detect invalid empty refs on both top-level 'uses:' keys and step-level '- uses:' entries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v1v
v1v marked this pull request as ready for review August 27, 2026 09:23
@github-actions github-actions Bot added the medium_boom Medium PR blast radius; likely benefits from human review label Aug 27, 2026
@v1v
v1v merged commit 51895a7 into main Aug 27, 2026
18 of 22 checks passed
@v1v
v1v deleted the fix-1763-validate-uses-step-ref-9fcac35f82265080 branch August 27, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

medium_boom Medium PR blast radius; likely benefits from human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] validate-uses-references.sh misses invalid '- uses: ...@' steps

1 participant