Secret scanning and lint catch mistakes in this repo, but not known vulnerabilities in images and dependencies, or insecure patterns in the workflows themselves.
Enterprise practice: SCA and container scanning on every PR plus a scheduled scan, and static analysis of CI definitions.
Steps
Secret scan on every PR and in the pre-commit hook (Betterleaks)
Install Trivy as a checksum-verified binary (same pattern as Betterleaks; avoid the wrapper action)
On PRs: trivy fs for dependencies and trivy config for Dockerfiles and Compose files; fail on HIGH and CRITICAL
Nightly: trivy image against every pinned image in stacks/, so new CVEs in unchanged images show up
Add zizmor to the hash-locked lint tools and run it on .gitea/workflows/; record any Gitea-specific false positives in its config with a reason
Keep an ignore file with a reason and an expiry date for each accepted finding
Tools
Trivy, zizmor.
Done when
A PR that introduces a known HIGH or CRITICAL vulnerability or an insecure workflow pattern fails its checks.
Secret scanning and lint catch mistakes in this repo, but not known vulnerabilities in images and dependencies, or insecure patterns in the workflows themselves.
**Enterprise practice:** SCA and container scanning on every PR plus a scheduled scan, and static analysis of CI definitions.
## Steps
- [x] Secret scan on every PR and in the pre-commit hook (Betterleaks)
- [ ] Install Trivy as a checksum-verified binary (same pattern as Betterleaks; avoid the wrapper action)
- [ ] On PRs: `trivy fs` for dependencies and `trivy config` for Dockerfiles and Compose files; fail on HIGH and CRITICAL
- [ ] Nightly: `trivy image` against every pinned image in `stacks/`, so new CVEs in unchanged images show up
- [ ] Add zizmor to the hash-locked lint tools and run it on `.gitea/workflows/`; record any Gitea-specific false positives in its config with a reason
- [ ] Keep an ignore file with a reason and an expiry date for each accepted finding
## Tools
Trivy, zizmor.
## Done when
A PR that introduces a known HIGH or CRITICAL vulnerability or an insecure workflow pattern fails its checks.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Secret scanning and lint catch mistakes in this repo, but not known vulnerabilities in images and dependencies, or insecure patterns in the workflows themselves.
Enterprise practice: SCA and container scanning on every PR plus a scheduled scan, and static analysis of CI definitions.
Steps
trivy fsfor dependencies andtrivy configfor Dockerfiles and Compose files; fail on HIGH and CRITICALtrivy imageagainst every pinned image instacks/, so new CVEs in unchanged images show up.gitea/workflows/; record any Gitea-specific false positives in its config with a reasonTools
Trivy, zizmor.
Done when
A PR that introduces a known HIGH or CRITICAL vulnerability or an insecure workflow pattern fails its checks.