Skip to content

Lock GitHub Actions workflows and pre-commit hooks - #367

Merged
hugovk merged 3 commits into
python:mainfrom
hugovk:gha-lockfile
Dec 3, 2026
Merged

hugovk merged 3 commits into
python:mainfrom
hugovk:gha-lockfile

Conversation

@hugovk

@hugovk hugovk commented Dec 2, 2026

Copy link
Copy Markdown
Member

Comment thread .pre-commit-config.yaml Outdated
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.19.0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.33.1

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.

Let's also lock our pre-commit hooks, should we do it in this PR?

@hugovk hugovk Dec 3, 2026 •

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.

Let's do it in another PR. I'll update them too, there's some formatting changes made via #369.

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.

I'll update this PR instead :)

@python/organization-owners I've requested pre-commit.ci for this repo. Please can you approve so we can keep these pins regularly updated?

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.

Approved.

@StanFromIreland StanFromIreland Dec 3, 2026 •

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.

Can’t Dependabot update these now?

See https://blog.github.com/changelog/2026-03-10-dependabot-now-supports-pre-commit-hooks/. I don’t see a reason to use another tool if the one we have is sufficient.

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.

Dependabot can do periodic updates but can't autofix PRs.

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.

Personally, I'd prefer if we disable auto-fix. It's rarely needed if you enable the Git hook, and fixing is trivial. It's also a little questionable to give a tool that much access.

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.

Indeed, it's rarely needed if you enable the Git hook, but it's for people who don't use the Git hook, or edit via the UI.

@hugovk hugovk changed the title Lock GitHub Actions workflows Lock GitHub Actions workflows and pre-commit hooks Dec 3, 2026
@hugovk
hugovk merged commit 3b27881 into python:main Dec 3, 2026
19 checks passed
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.

4 participants