Skip to content

🔒️ Add zizmor and fix audit findings - #61

Merged
YuriiMotov merged 19 commits into
mainfrom
setup-zizmor
May 18, 2026
Merged

YuriiMotov merged 19 commits into
mainfrom
setup-zizmor

Conversation

@YuriiMotov

Copy link
Copy Markdown
Member

Changes applied:

  • Setup daily interval and 7 days cooldown period for Dependabot
  • Added pre-commit package ecosystem to Dependabot config
  • Ignored dangerous-triggers rule for pull_request_target and workflow_run (checked that they are used in a safe way)
  • Specified minimal permissions on workflow level, moved permissions to the job level
  • Ignored secrets-outside-env rule as using the environments would require approval for each run (and without required approvals it wouldn't make sense)
  • Added persist-credentials: false for actions/checkout when persisting is not needed by other steps
  • Specified version of uv to install for astral-sh/setup-uv (Note that Dependabot will not upgrade it, but Renovate can do it)
  • Specified run condition in latest-changes to make it clear that it only runs for merged PRs
  • Replaced uvx prek command with uv run prek - uvx uses latest version (unpinned), it's better to use locked version
  • Added zizmor pre-commit hook
  • Added zizmor workflow to check on push to master (pre-commit hook will only work if workflow files updated by PR)

@YuriiMotov YuriiMotov added the internal Internal changes label Apr 18, 2026
@YuriiMotov
YuriiMotov marked this pull request as ready for review April 20, 2026 11:51

@savannahostrowski savannahostrowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread .github/dependabot.yml Resolved
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has a merge conflict that needs to be resolved.

@tiangolo tiangolo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you! 🚀

Feel free to merge as soon as merge conflicts are solved. 🤓

@YuriiMotov
YuriiMotov merged commit e4b0ca7 into main May 18, 2026
22 checks passed
@YuriiMotov
YuriiMotov deleted the setup-zizmor branch May 18, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Internal changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants