ci: add Zizmor pre-commit hook#1408
Conversation
46d7d92 to
f0ba330
Compare
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
|
I have zizmor on my list of pre-commit hooks to add: - repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.9.0
hooks:
- id: zizmorIs there a big advantage to using it in a workflow? |
|
In any case (workflow or pre-commit), you're welcome to create a PR with fixes (without adding zizmor) |
I think the advantage is just that the workflow integrates with GitHub advanced security, so the recommendations show up in PR annotations and in the repo's "security" tab. |
|
I've decided on using zizmor via pre-commit, for the following reasons:
Feel free to edit this PR, and make it as pedantic and annoying as possible please ;) |
Zizmor can flag many common security issues using static analysis of CI workflows. See https://docs.zizmor.sh/ for documentation.
|
@GideonBear Okay, I added a Zizmor pre-commit hook with |
…opgrade-rs#1408) Add the zizmor pre-commit hook to scan GitHub Actions workflows for security issues. Configured with --persona=auditor for thorough analysis and --no-progress for cleaner CI output. Based-on-PR: topgrade-rs#1408 Original-author: Daniel Hast <daniel@danielhast.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Zizmor can flag many common security issues using static analysis of CI workflows. See https://docs.zizmor.sh/ for documentation.