-
Notifications
You must be signed in to change notification settings - Fork 202
ci: add Zizmor pre-commit hook #1408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 |
Zizmor can flag many common security issues using static analysis of CI workflows. See https://docs.zizmor.sh/ for documentation.