Skip to content

Use pre-commit instead of Prek #293

@peytondmurray

Description

@peytondmurray

Currently, .pre-commit-config.yaml uses git tags rather than hashes for a number of hooks. These are vulnerable to the same type of "mutable git ref" attacks that unpinned github actions are. We've already seen attempts to exploit this in the wild on the Jupyter project.

Let's update these with a pre-commit autoupdate --freeze to pin these.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions