Skip to content
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

ci: Add zizmor pre-commit hook #311

Merged
merged 4 commits into from
Jan 10, 2025
Merged

ci: Add zizmor pre-commit hook #311

merged 4 commits into from
Jan 10, 2025

Conversation

nicholasjng
Copy link
Collaborator

Even though it's pretty new, zizmor has already established itself as a very potent static analysis tool for GitHub Actions. Let's give it a go and see what it has to say on our current CI.


Maintainer is very active and a great guy by the way, I've worked with him previously on abi3audit.

Some reading on zizmor:

Copy link

codecov bot commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.91%. Comparing base (b00c33e) to head (05d2454).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #311   +/-   ##
=======================================
  Coverage   94.91%   94.91%           
=======================================
  Files           5        5           
  Lines         413      413           
  Branches       92       92           
=======================================
  Hits          392      392           
  Misses         15       15           
  Partials        6        6           
Flag Coverage Δ
3.10 94.43% <ø> (ø)
3.11 94.43% <ø> (ø)
3.12 94.43% <ø> (ø)
3.13 94.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Even though it's pretty new, zizmor has already established itself as a very
potent static analysis tool for GitHub Actions. Let's give it a go to see
what it has to say on our current CI.
No persisting credentials, and the test and docs jobs in the test workflow
each get job-scoped content writing permissions.
No persisting credentials, and the test and docs jobs in the test workflow
each get job-scoped content writing permissions.

mike creates an automated commit on release/main push, so it does need
credentials - those are then explicitly set.

Fixes the mike action by putting inputs as environment variables. The alias
is explicitly not quoted, since otherwise mike would pick it up, and it cannot
deal with an empty string alias.
@nicholasjng nicholasjng merged commit de5d23c into main Jan 10, 2025
12 checks passed
@nicholasjng nicholasjng deleted the zizmor-pre-commit branch January 10, 2025 10:27
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.

1 participant