Skip to content

Fix example cmd to scan for vulns in README - #320

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
maximiliankolb:fix_scan_subcmd_in_readme
Aug 10, 2026
Merged

andrew merged 1 commit into
git-pkgs:mainfrom
maximiliankolb:fix_scan_subcmd_in_readme

Conversation

@maximiliankolb

Copy link
Copy Markdown
Contributor

Reproducer

# git pkgs --version
git-pkgs version v0.18.2
# git pkgs vulns
Commands for scanning dependencies for known vulnerabilities using OSV.

Usage:
  git-pkgs vulns [command]

Aliases:
  vulns, audit

Available Commands:
  blame       Show who introduced current vulnerabilities
  diff        Compare vulnerabilities between commits
  exposure    Calculate vulnerability exposure time
  history     Show vulnerability history for a package
  log         Show commits that changed vulnerability state
  praise      Show who fixed vulnerabilities
  scan        Scan dependencies for vulnerabilities
  show        Show details of a vulnerability
  sync        Sync vulnerability data from OSV

Flags:
  -h, --help   help for vulns

Global Flags:
      --color string         When to colorize output: auto, always, never (default "auto")
      --include-submodules   Include git submodules when scanning for manifests
  -p, --pager                Use pager for output
  -q, --quiet                Suppress non-essential output

Use "git-pkgs vulns [command] --help" for more information about a command.
# git pkgs vulns scan
Syncing vulnerabilities for 780 packages...
All packages already synced.
Found 3 vulnerabilities:

HIGH (3):
...

# echo $?
0

Built from source on Debian 13 with Go 1.26.1; tested with a random project.

@andrew

andrew commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@andrew
andrew merged commit 6cc7d76 into git-pkgs:main Aug 10, 2026
4 checks passed
@maximiliankolb
maximiliankolb deleted the fix_scan_subcmd_in_readme branch August 10, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants