Skip to content

Pin pre-commit hooks to commit hashes - #21920

Open
AlexWaygood wants to merge 1 commit into
python:masterfrom
AlexWaygood:alex/pin-pre-commit-hooks
Open

Pin pre-commit hooks to commit hashes#21920
AlexWaygood wants to merge 1 commit into
python:masterfrom
AlexWaygood:alex/pin-pre-commit-hooks

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

Pin all remote pre-commit hook repositories to full commit hashes to improve security: moving an upstream tag can no longer silently change which repository revision is fetched.

Preserve the existing hook versions in # frozen: comments. pre-commit.ci will continue updating the hooks while preserving hash pinning and refreshing the version comments.

@AlexWaygood
AlexWaygood marked this pull request as ready for review September 1, 2026 11:35
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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