Skip to content

Add Phase 1 SBOM pipeline (Syft + Grype) - #23

Merged
thst-nordic merged 1 commit into
mainfrom
feature/sbom-phase1
Jul 27, 2026
Merged

thst-nordic merged 1 commit into
mainfrom
feature/sbom-phase1

Conversation

@thst-nordic

@thst-nordic thst-nordic commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Phase 1 SBOM pipeline: Syft full-workspace and per-west-project scans, Grype CVE reports, optional Dependency-Track upload
  • All outputs published as a single GitHub Actions artifact (ncs-sbom-{version}-{sha}) per run
  • Run summary tab lists every file with sizes for quick review without downloading the zip
  • Stage 1a: report-only (GRYPE_FAIL_GATE: false); fail gate available via workflow_dispatch input
  • Includes complementary west ncs-sbom license SPDX for reference blinky sample

Files

  • .github/workflows/sbom.yml — main pipeline (main branch + workflow_dispatch)
  • .grype.yaml — Grype ignore rules for blobs, build output, test harnesses
  • scripts/sbom/scan-projects.sh — per-west-project Syft loop
  • scripts/sbom/annotate.sh — inject west revisions into CycloneDX
  • scripts/sbom/upload-dtrack.sh — DT component hierarchy (optional, requires secrets)

Phase 0 (Dependency-Track docker-compose) is handled separately.

Test plan

  • Trigger workflow_dispatch on this branch (or after merge to main)
  • Confirm Artifactsncs-sbom-v*-* contains full sbom/ tree (manifest, SPDX, CycloneDX, Grype reports, per-project SBOMs, license-blinky.spdx)
  • Confirm run Summary tab lists all files with sizes
  • Confirm workflow passes without DTRACK_* secrets
  • (After Phase 0) Add DTRACK_URL and DTRACK_API_KEY secrets and verify DT upload steps run

@thst-nordic
thst-nordic requested a review from a team as a code owner July 27, 2026 11:41
@thst-nordic
thst-nordic force-pushed the feature/sbom-phase1 branch from 2299ff9 to b4ab6d6 Compare July 27, 2026 12:17
Syft generates full-workspace and per-west-project SPDX and CycloneDX
SBOMs on main branch pushes. Grype produces CVE reports published as
separate CycloneDX and SPDX zip artifacts plus a full sbom/ bundle.
@thst-nordic
thst-nordic force-pushed the feature/sbom-phase1 branch from b4ab6d6 to 63204ba Compare July 27, 2026 12:58
@thst-nordic
thst-nordic merged commit 4bba52d into main Jul 27, 2026
11 of 21 checks passed
@thst-nordic
thst-nordic deleted the feature/sbom-phase1 branch July 27, 2026 13:15
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.

1 participant