Skip to content

feat(action): add sbom input so SPDX output is reachable from the GitHub Action #1078

Description

@sonukapoor

Problem

The OWASP/cve-lite-cli action exposes a boolean cdx input, which writes a CycloneDX 1.4 SBOM. It has no equivalent for SPDX, and there is no generic argument passthrough, so SPDX output is unreachable from the action.

Users who want SPDX today have to bypass the action:

- name: Generate SPDX SBOM
  run: npx --yes cve-lite-cli@1 . --sbom spdx

That works but skips everything the action provides around the scan.

Proposed change

Add an sbom input mapping to the CLI's --sbom <format> flag, accepting cyclonedx, spdx, or spdx2.3:

- uses: OWASP/cve-lite-cli@v1
  with:
    sbom: spdx
    fail-on: high

Also consider an sbom-inventory-only boolean mapping to --sbom-inventory-only, for teams generating SBOMs for archival or attestation where the document should change only when dependencies change.

The existing cdx input must keep working unchanged. It is documented across the README, the workflow-integration guide, and the CycloneDX page, and external adopters use it in pinned workflows.

Notes

  • Blocked on the SPDX output feature landing first.
  • website/docs/spdx.md currently documents the npx workaround and should be updated to show the action input once this ships.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions