feat(action): add sbom input so SPDX output is reachable from the GitHub Action - #1099
Open
Ayush7614 wants to merge 1 commit into
Open
feat(action): add sbom input so SPDX output is reachable from the GitHub Action#1099Ayush7614 wants to merge 1 commit into
Ayush7614 wants to merge 1 commit into
Conversation
…Hub Action Closes OWASP#1078. The CLI supports --sbom cyclonedx|spdx but the Action only exposed the legacy cdx boolean, so SPDX SBOMs were unreachable in CI. This adds a first-class sbom input (cyclonedx|spdx, case-insensitive, with cdx/spdx2.3 aliases) plus sbom-inventory-only, keeps cdx as a deprecated fallback (sbom wins when both are set), and fails fast on unknown formats instead of silently scanning without an SBOM.
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.
Closes #1078.
Summary
The CLI supports
--sbom cyclonedx|spdxbut the GitHub Action only exposed the legacycdxboolean, so SPDX 2.3 SBOMs were unreachable in CI.Changes
sbominput (cyclonedx|spdx, case-insensitive,cdx/spdx2.3aliases). Takes precedence overcdx.sbom-inventory-onlyinput wired to--sbom-inventory-only(warns when no SBOM output is enabled).cdxkept as deprecated fallback (elif), so existing workflows keep working and setting both does not emit two SBOM flags.sbomvalues fail fast with::error::instead of silently scanning without an SBOM.website/docs/github-action.md.Verification
tests/github-action.test.ts: 7 tests pass (new: sbom wiring, cdx fallback precedence, invalid-format rejection, inventory-only, alias normalization).npm run buildpasses;action.ymlparses as valid YAML.