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: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,10 @@ All notable changes to `src-cli` are documented in this file.
11
11
12
12
## Unreleased
13
13
14
+
### Added
15
+
16
+
- SBOM support: Added `--image` and `--exclude-image` flags to `src sbom fetch` for filtering which docker images SBOMs are fetched for. Both flags support glob patterns (e.g., `frontend`, `*api*`) and comma-separated lists. The `sourcegraph/` image name prefix is optional.
versionFlag:=flagSet.String("v", "", "The version of Sourcegraph to fetch SBOMs for.")
39
49
outputDirFlag:=flagSet.String("d", "sourcegraph-sboms", "The directory to store validated SBOMs in.")
40
50
internalReleaseFlag:=flagSet.Bool("internal", false, "Fetch SBOMs for an internal release. Defaults to false.")
41
51
insecureIgnoreTransparencyLogFlag:=flagSet.Bool("insecure-ignore-tlog", false, "Disable transparency log verification. Defaults to false.")
52
+
imageFlag:=flagSet.String("image", "", "Filter list of image names, to only fetch SBOMs for Docker images with names matching these patterns. Supports literal names, like frontend, and glob patterns like '*postgres*'. Multiple patterns can be specified as a comma-separated list (e.g., 'frontend,*postgres-1?-*'). The 'sourcegraph/' prefix is optional. If not specified, SBOMs for all images are fetched.")
53
+
excludeImageFlag:=flagSet.String("exclude-image", "", "Exclude Docker images with names matching these patterns from being fetched. Supports the same formats as --image. Takes precedence over --image filters.")
0 commit comments