Skip to main content
InterviewHubPRO
Section Overview
Q31

Question 31 of 50

Part 3: Enterprise Scale, Compliance & Production Hardening (Senior / Staff)

62%
CI/CD & GitHub Actions (50 Qs)•Part 3: Enterprise Scale, Compliance & Production Hardening (Senior / Staff)

What is an SBOM and how do you generate one in CI?

senior LevelCode ExamplecicdEnterprise Scale

In Simple Words: A Software Bill of Materials (SBOM) is a machine-readable inventory of every open-source library, transitive dependency, and compiler version inside your build artifact. Tools like syft or trivy generate SBOMs in SPDX or CycloneDX format, which are attached to releases for vulnerability tracking:

yaml
- name: Generate SBOM
  uses: anchore/sbom-action@v0
  with:
    image: ghcr.io/org/app:latest
    format: cyclonedx-json
    output-file: app-sbom.json