Skip to content

Commit

Permalink
docs: add section about new flag
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 1, 2024
1 parent 1a0cd32 commit 6d1d0aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,12 @@ osv-detector --ignore GHSA-896r-f27r-55mw --ignore GHSA-74fj-2j2h-c42q package-l
Ignores provided via the flag will be combined with any ignores specified in the
loaded config file.
You can use `jq` to generate a list of OSV ids if you want to ignore all current
known vulnerabilities found by the detector:
You can use `--update-config-ignores` to have the detector update configs being
used for lockfiles to ignore any vulnerabilities that were found; note if you
have existing ignores you'll want to use `--no-config-ignores` as well.
Alternatively, you can use `jq` to generate a list of OSV ids if you want to
ignore all current known vulnerabilities found by the detector:
```shell
osv-detector --json . | jq -r '[.results[].packages | map("- " + .vulnerabilities[].id)] | flatten | unique | sort | .[]'
Expand Down

0 comments on commit 6d1d0aa

Please sign in to comment.