ci: address lint findings, add zizmor workflow #262
Merged
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.
Hi there!
First, I wanted to say thanks for creating and maintaining this action -- I use it both personally and professionally, and it's been a joy to use.
I'm filling this with a bunch of (small) security fixes, all of which were identified by zizmor, which I maintain. None of the findings were particularly severe or immediately exploitable, which is why I'm filing it without a private disclosure -- I think these would all be good to fix as a matter of defense-in-depth, but there's no significant urgency to them 🙂
To summarize:
uses:-- this makes the CI more hermetic, and makes it less likely that a security or reliability issue gets introduced in via a tag mutation.persist-credentials: falseto as manyactions/checkoutusages as possible -- this eliminates an implicitly persisted credential that GitHub Actions adds by default, which the overwhelming majority of workflows don't need.zizmor.ymlworkflow that'll run zizmor on every PR and push; it's integrated into GitHub's "Advanced Security" so that you'll get alerts on PRs that introduce potential issues. However, this is only if you want continuous scanning here; if you'd prefer to not have another thing in your CI, I'm happy to remove this step!