Skip to content

Commit

Permalink
Fix Vulnerability Breaking Changes in Docs
Browse files Browse the repository at this point in the history
* This PR was created because of guacsec/guac#2153

Signed-off-by: nathannaveen <42319948+nathannaveen@users.noreply.github.com>
  • Loading branch information
nathannaveen committed Sep 30, 2024
1 parent 864d20a commit 3f39e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions querying-via-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ In the `guac-data-main/docs/spdx/spdx_vuln.json` SBOM example, the URI would be
This would result in the query being:

```bash
guacone query vuln "https://anchore.com/syft/image/ghcr.io/guacsec/vul-image-latest-6fd9de7b-9bec-4ae7-99d9-4b5e5ef6b869"
guacone query vuln "https://anchore.com/syft/image/ghcr.io/guacsec/vul-image-latest-6fd9de7b-9bec-4ae7-99d9-4b5e5ef6b869" "uri"
```

If instead the `pURL` is used, the query would be the following:

```bash
guacone query vuln "pkg:guac/spdx/ghcr.io/guacsec/vul-image-latest"
guacone query vuln "pkg:guac/spdx/ghcr.io/guacsec/vul-image-latest" "purl"
```

**If you get this error:**
Expand Down Expand Up @@ -193,13 +193,13 @@ number.
If using the SBOM URI:

```bash
guacone query vuln "https://anchore.com/syft/image/ghcr.io/guacsec/vul-image-latest-6fd9de7b-9bec-4ae7-99d9-4b5e5ef6b869" --vuln-id "ghsa-7rjr-3q55-vv33"
guacone query vuln "https://anchore.com/syft/image/ghcr.io/guacsec/vul-image-latest-6fd9de7b-9bec-4ae7-99d9-4b5e5ef6b869" --vuln-id "ghsa-7rjr-3q55-vv33" "uri"
```

If using the `pURL`:

```bash
guacone query vuln "pkg:guac/spdx/ghcr.io/guacsec/vul-image-latest" --vuln-id "ghsa-7rjr-3q55-vv33"
guacone query vuln "pkg:guac/spdx/ghcr.io/guacsec/vul-image-latest" --vuln-id "ghsa-7rjr-3q55-vv33" "purl"
```

**If you get this error:**
Expand Down

0 comments on commit 3f39e49

Please sign in to comment.