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: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -342,6 +342,49 @@ sbom:
342
342
343
343
When enabled, Leeway automatically generates SBOMs for each package during the build process in multiple formats (CycloneDX, SPDX, and Syft JSON) using [Syft](https://github.com/anchore/syft). These SBOMs are included in the package's build artifacts.
344
344
345
+
### SBOM Commands
346
+
347
+
Leeway provides two commands for working with SBOMs:
348
+
349
+
#### sbom export
350
+
351
+
The `sbom export` command allows you to export the SBOM of a previously built package:
352
+
353
+
```bash
354
+
# Export SBOM in CycloneDX format (default) to stdout
- `--output-dir`: Directory to export scan results (required).
384
+
- `--with-dependencies`: Scan the package and all its dependencies.
385
+
386
+
This command uses existing SBOM files from previously built packages and requires SBOM generation and vulnerability scanning to be enabled in the workspace settings.
387
+
345
388
### Vulnerability Scanning
346
389
347
390
When `scanVulnerabilities` is enabled, Leeway scans the generated SBOMs for vulnerabilities using [Grype](https://github.com/anchore/grype). The scan results are written to the build directory in multiple formats:
0 commit comments