Repository navigation
fix(security): devops scan sbom is produced by trivy's cyclonedx and spdx writers - #2301
Merged
Merged
Conversation
…spdx writers Delegate scan sbom execution directly to Aqua Trivy's cyclonedx and spdx-json format writers instead of maintaining hand-rolled SBOM dictionary generators. Remove obsolete SBOMComponent, SBOMDocument, and extract_workspace_components. Closes #1439
Check dry-run mode before verifying the external Trivy binary in scan sbom, and supply process fake to the dry-run test.
dan-petty
marked this pull request as ready for review
October 26, 2026 15:12
dan-petty
pushed a commit
that referenced
this pull request
Oct 26, 2026
🤖 I have created a release *beep* *boop* --- ## [0.6.3](v0.6.2...v0.6.3) (2026-10-26) ### Bug Fixes * **github:** devops gh rate-limit reads only the free /rate_limit endpoint ([#2300](#2300)) ([706e386](706e386)), closes [#1441](#1441) * **github:** the label taxonomy metrics count every open issue across all pages and no pull requests ([#2298](#2298)) ([f5cd022](f5cd022)) * **infra:** cloudflare access sync reads every page of applications and policies and retries rate-limited requests ([#2296](#2296)) ([a86aa4b](a86aa4b)) * **review:** the review dry run shows the request the model client would send, built by that client ([#2291](#2291)) ([9383fd5](9383fd5)) * **security:** devops scan sbom is produced by trivy's cyclonedx and spdx writers ([#2301](#2301)) ([d5e47ff](d5e47ff)) * **terraform:** drift reads state through tofu show -json, so encrypted state and module resources are no longer misreported ([#2297](#2297)) ([169859a](169859a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Delegate
devops scan sbomdirectly to Aqua Trivy (trivy fs) throughTrivySbomScanner, replacing hand-rolled CycloneDX and SPDX dictionary generators and removingextract_workspace_components.Closes #1439
Changes
build_trivy_sbom_cmdindevops_cli.config.commandsmapping format selections (cyclonedxandspdx/spdx-json) to Trivy arguments.TrivySbomScannerandrun_trivy_sbomindevops_cli.security.sbom, routing throughToolExecutor/run_subprocess.--outputor stdout indevops_cli.commands.scan:scan_sbom.SBOMComponent,SBOMDocument, andextract_workspace_components.tests/test_sbom.pyverifying Trivy command arguments, unaltered file and stdout outputs, missing binary reporting, format validation, and removal of hand-rolled builders.devops ci fail-to-pass --base origin/main(6 failed on base, 0 errored).