8000 GitHub - devguardch/cli: devguard CLI: run collectors such as npm audit, Trivy or Terraform plans on a schedule and push their output into devguard Evidence records, secret-scanned before upload. Release binaries and issue tracker. · GitHub
[go: up one dir, main page]

Skip to content
devguardchPublic

About

devguard CLI: run collectors such as npm audit, Trivy or Terraform plans on a schedule and push their output into devguard Evidence records, secret-scanned before upload. Release binaries and issue tracker.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

devguard

devguard CLI

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.

Version MIT license

Commands

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.

Install

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).

Quickstart

  1. Create an Evidence in devguard and link it to your controls. Note its number, such as EV-42.

  2. Run devguard login, or set DEVGUARD_API_KEY in CI.

  3. Run devguard init, or commit a devguard.yml by hand:

    collectors:
      - name: npm-audit
        command: npm audit --json
        evidence: 42
        allowExitCodes: [0, 1]   # npm audit exits 1 when it finds anything
  4. 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.

Requirements

  • 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.

Documentation

Issues

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.

License

MIT, see LICENSE.

About

devguard CLI: run collectors such as npm audit, Trivy or Terraform plans on a schedule and push their output into devguard Evidence records, secret-scanned before upload. Release binaries and issue tracker.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

0