Credits
Running in the audit workflow
Section titled “Running in the audit workflow”| Project | Used for | Licence |
|---|---|---|
| gitleaks | Secret scanning in scripts/lib/audit-checks.sh |
MIT |
| semgrep | Static analysis (SAST) in scripts/lib/audit-checks.sh |
LGPL-2.1 |
| osv-scanner | Known-vulnerability scan of lockfiles in scripts/lib/dep-checks.sh |
Apache-2.0 |
gitleaks, pinned to v8.30.1. .github/workflows/reusable-audit.yml
downloads the linux_x64 release archive and verifies it against a
sha256 confirmed at the time this file was written, using the checksums
gitleaks itself publishes with each release. A local run of
scripts/conform.sh audit uses whatever gitleaks is already on the
operator’s PATH, or falls back to a narrower heuristic scan documented
inline in scripts/lib/audit-checks.sh if gitleaks isn’t installed;
either way, nothing is downloaded or installed onto the operator’s own
machine by this project’s own code. See decisions.md
#13.
semgrep, pinned to v1.175.0.
.github/workflows/reusable-audit.yml installs it via
pip install semgrep==1.175.0, a version pin rather than a checksum
verification: semgrep distributes through PyPI with a real dependency
tree, not a single downloadable binary the way gitleaks is, and fully
hash-pinning the whole tree (pip install --require-hashes) is real,
ongoing lockfile maintenance disproportionate to what it buys here. A
lighter verification bar than gitleaks’s, deliberately, relying on
PyPI’s own integrity and TLS guarantees instead, the same trust model
most pip/npm-pinned dependencies already use. A local run uses whatever
semgrep is already on the operator’s PATH, or skips the check
entirely (not a false pass) if it isn’t installed; there’s no honest
heuristic fallback for “contains a SQL injection” the way there is for
“looks like an AWS key.” See decisions.md #18.
osv-scanner, pinned to v2.7.0.
.github/workflows/reusable-audit.yml downloads the linux_amd64 binary
and verifies it against the sha256 in the SHA256SUMS file published with
the release; the darwin_arm64 build was verified against the same file
and run against a fixture of known-vulnerable dependencies before any code
was written around it. It reads package-lock.json, requirements.txt,
Cargo.lock and the other lockfile formats it supports, and matches them
against the OSV database, which aggregates the GitHub,
PyPI and RustSec advisories, so one tool does the vulnerability half of
npm audit, pip-audit and cargo audit. It queries api.osv.dev at run
time. The release also publishes SLSA provenance (multiple.intoto.jsonl),
which is a stronger check than a checksum from the same release page; this
project verifies the checksum only. A local run uses whatever osv-scanner
is on the operator’s PATH or skips the check, reported as not run, never
as a pass. See decisions.md #23.
Services queried at run time, not installed, so there is nothing to pin:
the npm registry, PyPI, the crates.io sparse index, endoflife.date
(end-of-life dates for base images and language runtimes), and the API of
each host an Action is referenced from (api.github.com, or a Forgejo’s
/api/v1). Any of them being down or changing shape degrades a check to
“result incomplete”, which the report says; none of them can make it pass.
Evaluated and not adopted
Section titled “Evaluated and not adopted”| Project | Outcome |
|---|---|
| trufflehog | Also a credible choice for the same secret-scanning job; gitleaks was picked for a smaller binary and a simpler single-binary release artifact, not because trufflehog is worse. Revisit if gitleaks’s false-negative rate on real findings turns out to matter. |
npm audit, pip-audit, cargo-audit / cargo-deny |
The ecosystem-native tools for the same vulnerability job. Not adopted: three installs, three output formats and three advisory databases to cover what one verified binary covers, and pip-audit and cargo-audit need the target’s toolchain (or a build) to resolve dependencies. Their real advantage is depth within one ecosystem: cargo-deny also checks licences, bans and duplicate versions, and cargo-audit reads RustSec’s unmaintained/yanked notices more directly. Revisit if OSV’s coverage of one ecosystem proves thinner than its native tool’s. |
| CodeQL | The deeper tool for the SAST job: genuine dataflow analysis, not pattern matching. Not adopted for the generic audit specifically because it needs to know how to build the target, which has to be configured per-repo and isn’t something this audit can supply for an arbitrary clone. Offered instead as a separate, opt-in template (templates/.github/workflows/codeql.yml) for an adopter’s own CI. |
On adding dependencies
Section titled “On adding dependencies”This file exists because gitleaks was the first real, adopted
dependency this project had: see decisions.md #10,
which exempted docs/credits.md on the premise that conformIT had
none, and named exactly this condition as what would end the exemption.
Before adding another:
- Record it here with a link and licence.
- Pin a version, verified against a real checksum where the distribution method makes that practical (gitleaks); where it doesn’t (semgrep), pin the version anyway and say plainly why a checksum wasn’t practical, rather than silently pinning less rigorously and calling it the same thing.
- Check it isn’t already solved without a dependency, per rules-of-engagement.md rule 7.