Continuous evidence for devguard: run your collectors (npm audit, Trivy, Terraform plans, any command) on a schedule and push their output into a devguard Evidence record.
The Evidence stays current, instead of a screenshot someone uploaded once a year.
| Command | What it does |
|---|---|
devguard init |
Interactive wizard that detects your project and writes a devguard.yml |
devguard login |
Signs in through your browser and stores the login in ~/.devguard/config.json |
devguard logout |
Revokes and forgets this machine's login |
devguard scan --evidence 42 |
Runs an installed scanner (Trivy, osv-scanner, Grype, npm audit) and pushes its report |
devguard evidence validate |
Read-only preflight: config, sign-in, and that every Evidence exists |
devguard evidence push |
Runs the collectors, scans for secrets, uploads, and replaces each collector's previous file |
Every upload is checked for secrets first (cloud keys, private keys, tokens), and a match blocks the push. --dry-run rehearses the whole push without uploading.
npx @devguardch/cli --help # run it once, nothing to install
npm install -g @devguardch/cli # global install, provides `devguard`
Without Node, take a standalone Linux binary (x64 or arm64) from the latest release and verify it against SHA256SUMS. Each binary has an .xz variant for constrained hosts (xz -d once after download).
-
Create an Evidence in devguard and link it to your controls. Note its number, such as EV-42.
-
Run
devguard login, or setDEVGUARD_API_KEYin CI. -
Run
devguard init, or commit adevguard.ymlby hand:collectors: - name: npm-audit command: npm audit --json evidence: 42 allowExitCodes: [0, 1] # npm audit exits 1 when it finds anything
-
Run
devguard evidence push, for example nightly in CI:- run: npx @devguardch/cli evidence push env: DEVGUARD_API_KEY: ${{ secrets.DEVGUARD_API_KEY }}
A pushed file that passes its expiresAt (30 days by default) without a refresh shows up on devguard's Deadlines.
- Node 20 or later, or a standalone binary.
- An Evidence record in devguard for each collector. The CLI never creates one.
- In CI, an organization token from Settings → Organization tokens. It belongs to the organization, so it keeps working after you leave. Treat it as a high-value secret.
This repository holds the CLI's release binaries, published by our release pipeline. The source code is not published here. Open an issue if something does not work as documented.
MIT, see LICENSE.