From 394665e88aed0808364633bb012a6096532e5733 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 22 Nov 2026 15:34:55 -0500 Subject: [PATCH] CI: build the SBOM from the lockfile (the audit job has no node_modules) Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3129129..0efe038 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -63,7 +63,7 @@ jobs: - name: Audit production and dev dependencies run: npm audit --audit-level=high - name: Software bill of materials (production dependencies) - run: npm sbom --sbom-format cyclonedx --omit dev > sbom.cdx.json + run: npm sbom --sbom-format cyclonedx --omit dev --package-lock-only > sbom.cdx.json - name: Keep the SBOM for each main build if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/upload-artifact@c6a3b2bd78b3985e4b2f15397fec357f0fd808de # v3.2.2-node20 (v4 is unsupported on Gitea)