Replies: 2 comments
|
Hi @inahga, thanks for opening this! Yeah, this is unfortunate at the moment -- I agree that we should probably find do one additional hop (go ref-to-commit, then map the commit back to its longest ref) for the autofix. IIRC the reason I didn't consider this originally is because A patch would be greatly appreciated -- there's a (I'm going to convert this to a feature request issue.) |
0 replies
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Consider
This is appropriately flagged, and --fix=all will expand it to:
However, leaving the tag at
v6is not very useful. When actions/checkout updates, and moves its v6 tag forward, this workflow will start to fail lints withref-version-mismatch.It would be better if zizmor resolved v6 to the latest available full version tag, and used that.
Note that
ref-version-mismatchhas an effective autofix which will expand the version tag, but that only applies once the action is updated and we have failing CI. It would be better if the autofix just fixed it right in the first place.(This is also particularly annoying because I have 20 or so repos to blast zizmor across 😭)
Happy to contribute a changeset, just checking if the maintainers are OK with this first.
All reactions