Skip to content

Add zizmor to pre-commit and fix findings#1812

Open
hugovk wants to merge 3 commits into
python:mainfrom
hugovk:zizmor
Open

Add zizmor to pre-commit and fix findings#1812
hugovk wants to merge 3 commits into
python:mainfrom
hugovk:zizmor

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented May 26, 2026

Follow on from #1811.

Add zizmor to pre-commit and fix findings.

Update other pre-commit hooks.

Add handy env vars:
FORCE_COLOR: 1
RUFF_OUTPUT_FORMAT: github

Replace pre-commit with prek to remove Node.js 20 deprecation warning and unpinned transitive dependencies.

Comment thread .github/dependabot.yml
Comment on lines +15 to +16
# Cooldowns protect against supply chain attacks by avoiding the
# highest-risk window immediately after new releases.
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.

I don't like the false sense of security this gives us, this comment makes this seem fail-safe.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's a copy-paste from python/cpython#141866 which references https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns.

Nothing is fail-safe in security, there are many things we can do to protect against these attacks, and this is a good one. They layer on top of each other.

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.

2 participants