The security.py module#
Summary#
Security rule family. |
|
The .github/zizmor.yml file exists. |
|
The zizmor config includes the secrets-outside-env rule. |
|
The gitleaks hook is configured. |
|
SECURITY.md discourages public issue reporting. |
|
Pre-commit repositories pin revisions to commit SHAs. |
|
A dependency lockfile exists. |
Description#
Security configuration checks.
This rule set validates the security configuration of a repository: the
zizmor and gitleaks tooling, the SECURITY.md policy, the pinning of the
pre-commit repositories, and the dependency lockfile.
The checks cover:
.github/zizmor.ymlexists and disables thesecrets-outside-envauditThe
gitleakspre-commit hook is configuredSECURITY.mdexists only at the root and tells reporters not to open public issuesPre-commit repositories are pinned to commit SHAs
A
uv.lockorpoetry.locklockfile pins the dependencies
GitHub Actions workflow hardening, such as pinning actions to commit SHAs,
version comments, token permissions, credential persistence, and dangerous
triggers, is left to the zizmor audits. Missing, unreadable, or invalid
configuration is reported as an ERROR.