You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/how-to-guides/scanning/scan-dependencies.mdx
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,26 @@ The output shows each affected library with its vulnerabilities, the contextual
100
100
101
101
**Verify it worked:** Navigate to your repository in DevGuard. You'll see detected vulnerabilities listed with severity scores, affected components, and fix recommendations. Learn more about [vulnerability types](/explanations/core-concepts/vulnerability-types) and the [vulnerability lifecycle](/explanations/vulnerability-management/vulnerability-lifecycle).
102
102
103
+
## Scan Without Authentication
104
+
105
+
You can run the scanner without a token or asset name to get vulnerability results without saving them to DevGuard. This is useful for a quick local scan or for trying out the scanner.
106
+
107
+
```bash copy
108
+
docker run -v "$(PWD):/dev/app" ghcr.io/l3montree-dev/devguard/scanner:main-latest \
109
+
devguard-scanner sca \
110
+
--path /dev/app/
111
+
```
112
+
113
+
When no `--token` and `--assetName` are provided, the scanner will print a warning and return the vulnerability results without persisting them:
114
+
115
+
```
116
+
Warning: You are scanning without saving the results. Provide --token and --assetName to save results to DevGuard.
117
+
```
118
+
119
+
<Callouttype="info">
120
+
Unauthenticated scans check your dependencies against the vulnerability database and show results in the terminal, but findings are not tracked in DevGuard and will not appear in your repository's vulnerability dashboard.
121
+
</Callout>
122
+
103
123
## CI/CD Integration
104
124
105
125
For automated dependency scanning in CI/CD pipelines, DevGuard provides ready-to-use integrations:
Copy file name to clipboardExpand all lines: src/pages/how-to-guides/scanning/upload-sbom.mdx
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,47 @@ docker run -v "$(PWD):/dev/app" ghcr.io/l3montree-dev/devguard/scanner:main-late
49
49
50
50
**Verify it worked:** Navigate to your repository in DevGuard. You'll see detected vulnerabilities listed with affected components and fix recommendations.
51
51
52
+
## Scan Without Authentication
53
+
54
+
You can upload an SBOM and scan it without a token or asset name to get vulnerability results without saving them to DevGuard.
55
+
56
+
```bash copy
57
+
docker run -v "$(PWD):/dev/app" ghcr.io/l3montree-dev/devguard/scanner:main-latest \
58
+
devguard-scanner sbom /dev/app/sbom.json
59
+
```
60
+
61
+
When no `--token` and `--assetName` are provided, the scanner will print a warning and return results without persisting them:
62
+
63
+
```
64
+
Warning: You are scanning without saving the results. Provide --token and --assetName to save results to DevGuard.
65
+
```
66
+
67
+
<Callouttype="info">
68
+
Unauthenticated scans check your SBOM against the vulnerability database and show results in the terminal, but findings are not tracked in DevGuard and will not appear in your repository's vulnerability dashboard.
69
+
</Callout>
70
+
71
+
## Merge and Scan Multiple SBOMs
72
+
73
+
Use `merge-sboms` to combine multiple CycloneDX SBOMs and pipe the result directly into the `sbom` command for scanning. Pass `-` as the file argument to read from stdin:
--apiUrl string The url of the API to send the scan request to (default "https://api.devguard.org")
33
-
--artifactName string The name of the artifact which was scanned. If not specified, it will default to the empty artifact name ''.
34
-
--assetName string The id of the asset which is scanned
35
-
--defaultRef string The default git reference to use. This can be a branch, tag, or commit hash. If not specified, it will check, if the current directory is a git repo. If it isn't, --ref will be used.
36
-
--failOnCVSS string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
37
-
--failOnRisk string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
38
-
-h, --help help for container-scanning
39
-
--ignoreExternalReferences If an attestation does contain a external reference to an sbom or vex, this will be ignored. Useful when scanning your own image from the registry where your own attestations are attached.
40
-
--ignoreUpstreamAttestations Ignores attestations from the scanned container image - if they exists
41
-
--image string OCI image reference to scan (e.g. ghcr.io/org/image:tag). If empty, --path or the first argument may be used to provide a tar or local files.
42
-
--isTag If the current git reference is a tag. If not specified, it will check if the current directory is a git repo. If it isn't, it will be set to false.
43
-
--origin string Origin of the SBOM (how it was generated). Examples: 'source-scanning', 'container-scanning', 'base-image'. Default: 'container-scanning'. (default "DEFAULT")
44
-
--path string Path to a tar file or directory containing the container image to scan. If empty, --image must be provided or an argument.
45
-
--ref string The git reference to use. This can be a branch, tag, or commit hash. If not specified, it will first check fora git repositoryin the current directory. If not found, it will just use main.
46
-
--timeout int Set the timeout forscanner operationsin seconds (default 300)
47
-
--token string The personal access token to authenticate the request
48
-
--webUI string The url of the web UI to show the scan results in. Defaults to 'https://app.devguard.org'. (default "https://app.devguard.org")
32
+
--apiUrl string The url of the API to send the scan request to (default "https://api.devguard.org")
33
+
--artifactName string The name of the artifact which was scanned. If not specified, it will default to the empty artifact name ''.
34
+
--assetName string The id of the asset which is scanned
35
+
--defaultRef string The default git reference to use. This can be a branch, tag, or commit hash. If not specified, it will check, if the current directory is a git repo. If it isn't, --ref will be used.
36
+
--failOnCVSS string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
37
+
--failOnRisk string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
38
+
-h, --help help for container-scanning
39
+
--ignoreExternalReferences If an attestation does contain a external reference to an sbom or vex, this will be ignored. Useful when scanning your own image from the registry where your own attestations are attached.
40
+
--ignoreUpstreamAttestations Ignores attestations from the scanned container image - if they exists
41
+
--image string OCI image reference to scan (e.g. ghcr.io/org/image:tag). If empty, --path or the first argument may be used to provide a tar or local files.
42
+
--isTag If the current git reference is a tag. If not specified, it will check if the current directory is a git repo. If it isn't, it will be set to false.
43
+
--keepOriginalSbomRootComponent Use this flag if you get software from a supplier and you want to identify vulnerabilities in the root component itself, not only in the dependencies
44
+
--origin string Origin of the SBOM (how it was generated). Examples: 'source-scanning', 'container-scanning', 'base-image'. Default: 'container-scanning'. (default "DEFAULT")
45
+
--path string Path to a tar file or directory containing the container image to scan. If empty, --image must be provided or an argument.
46
+
--ref string The git reference to use. This can be a branch, tag, or commit hash. If not specified, it will first check fora git repositoryin the current directory. If not found, it will just use main.
47
+
--timeout int Set the timeout forscanner operationsin seconds (default 300)
48
+
--token string The personal access token to authenticate the request
49
+
--webUI string The url of the web UI to show the scan results in. Defaults to 'https://app.devguard.org'. (default "https://app.devguard.org")
--apiUrl string The url of the API to send the scan request to (default "https://api.devguard.org")
32
-
--artifactName string The name of the artifact which was scanned. If not specified, it will default to the empty artifact name ''.
33
-
--assetName string The id of the asset which is scanned
34
-
--defaultRef string The default git reference to use. This can be a branch, tag, or commit hash. If not specified, it will check, if the current directory is a git repo. If it isn't, --ref will be used.
35
-
--failOnCVSS string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
36
-
--failOnRisk string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
37
-
-h, --help help for sbom
38
-
--ignoreExternalReferences If an attestation does contain a external reference to an sbom or vex, this will be ignored. Useful when scanning your own image from the registry where your own attestations are attached.
39
-
--isTag If the current git reference is a tag. If not specified, it will check if the current directory is a git repo. If it isn't, it will be set to false.
40
-
--origin string Origin of the SBOM (how it was generated). Examples: 'source-scanning', 'container-scanning', 'base-image'. Default: 'container-scanning'. (default "DEFAULT")
41
-
--ref string The git reference to use. This can be a branch, tag, or commit hash. If not specified, it will first check fora git repositoryin the current directory. If not found, it will just use main.
42
-
--timeout int Set the timeout forscanner operationsin seconds (default 300)
43
-
--token string The personal access token to authenticate the request
44
-
--webUI string The url of the web UI to show the scan results in. Defaults to 'https://app.devguard.org'. (default "https://app.devguard.org")
34
+
--apiUrl string The url of the API to send the scan request to (default "https://api.devguard.org")
35
+
--artifactName string The name of the artifact which was scanned. If not specified, it will default to the empty artifact name ''.
36
+
--assetName string The id of the asset which is scanned
37
+
--defaultRef string The default git reference to use. This can be a branch, tag, or commit hash. If not specified, it will check, if the current directory is a git repo. If it isn't, --ref will be used.
38
+
--failOnCVSS string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
39
+
--failOnRisk string The risk level to fail the scan on. Can be 'low', 'medium', 'high' or 'critical'. Defaults to 'critical'. (default "critical")
40
+
-h, --help help for sbom
41
+
--ignoreExternalReferences If an attestation does contain a external reference to an sbom or vex, this will be ignored. Useful when scanning your own image from the registry where your own attestations are attached.
42
+
--isTag If the current git reference is a tag. If not specified, it will check if the current directory is a git repo. If it isn't, it will be set to false.
43
+
--keepOriginalSbomRootComponent Use this flag if you get software from a supplier and you want to identify vulnerabilities in the root component itself, not only in the dependencies
44
+
--origin string Origin of the SBOM (how it was generated). Examples: 'source-scanning', 'container-scanning', 'base-image'. Default: 'container-scanning'. (default "DEFAULT")
45
+
--ref string The git reference to use. This can be a branch, tag, or commit hash. If not specified, it will first check fora git repositoryin the current directory. If not found, it will just use main.
46
+
--timeout int Set the timeout forscanner operationsin seconds (default 300)
47
+
--token string The personal access token to authenticate the request
48
+
--webUI string The url of the web UI to show the scan results in. Defaults to 'https://app.devguard.org'. (default "https://app.devguard.org")
0 commit comments