Skip to content

New check: Dependency cooldown configuration #761

@mfisher87

Description

@mfisher87

I feel that dependency cooldowns are an underappreciated best practice. In light of the ongoing spate supply chain attacks happening right now, I think it would be awesome for the repo review checks to ensure the repo has dependency cooldowns configured.

E.g. in pyproject.toml:

[tool.uv]
# "Dependency cooldown" to help prevent supply chain attacks
#    See: https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns
exclude-newer = "7 days"

prek auto-update also supports a --cooldown-days setting:

https://prek.j178.dev/cli/#prek-auto-update--cooldown-days

Though it's not configurable (yet): j178/prek#1765

Metadata

Metadata

Assignees

No one assigned

    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