Skip to content

Conversation

@marcleblanc2
Copy link
Contributor

When running src sbom fetch, all container images of the given release version would always get their SBOMs fetched; this leads to HTTP 429 rate limit blocks from Dockerhub if more than 2 versions are fetched. Allowing filtering of image names means that more versions can have SBOMs fetched for fewer images.

Test plan

Amp wrote the code and tested it itself
Screenshot 2025-06-03 at 18 01 48
Screenshot 2025-06-03 at 18 01 57

I was also able to run it successfully in my Bash script:

declare -a versions=("6.4.1203" "6.4.0" "6.3.4167" ... "5.8.0")
for version in "${versions[@]}"
do
    go run ./cmd/src sbom fetch -v "$version" --image 'postgres*' --exclude-image '*exporter*,*codeinsights*'
done

@marcleblanc2 marcleblanc2 enabled auto-merge (squash) June 4, 2025 00:13
@marcleblanc2 marcleblanc2 requested a review from willdollman June 4, 2025 00:13
@marcleblanc2 marcleblanc2 merged commit 983280c into main Jun 4, 2025
8 checks passed
@marcleblanc2 marcleblanc2 deleted the marc/add-sbom-fetch-image-name-filters branch June 4, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants