Skip to content

Fix setup-action-validator stale version detection - #2327

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
fix-2326-action-validator-version-check-3606b8b3d6c5b6ea
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
fix-2326-action-validator-version-check-3606b8b3d6c5b6ea

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

This fixes setup-action-validator so it no longer treats any existing bin/action-validator file as valid.

make setup-action-validator now:

  • checks whether bin/action-validator is executable
  • parses the installed version from --version
  • compares it to the pinned ACTION_VALIDATOR_VERSION
  • reinstalls when the version is stale or when the file is non-executable

This aligns behavior with the existing setup-actionlint version-check pattern and resolves stale-tool reuse reported in #2326.

Closes #2326.

Validation

/tmp/gh-aw/agent/repro-stale-action-validator.sh
make lint-actions --no-print-directory
make lint --no-print-directory

What is this? | From workflow: Trigger Bug Hunter

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

Ensure setup-action-validator verifies the installed binary version and reinstalls on mismatch or non-executable binaries, matching setup-actionlint behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

[bug-hunter] setup-action-validator does not reinstall stale versions

0 participants