From 00cef0733655ba7473869ecf8495e7d21c22395c Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Sun, 8 Nov 2026 21:18:34 +0530 Subject: [PATCH] ci(release): add CycloneDX and SPDX SBOM generation (SLSA Level 3) --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 274d546..ac48efb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,6 +76,26 @@ jobs: with: subject-path: 'dist/**' + - name: Generate CycloneDX SBOM + uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 + with: + path: ./ + format: 'cyclonedx-json' + output-file: 'dist/dbshield-cyclonedx.sbom.json' + artifact-name: 'dbshield-cyclonedx.sbom.json' + upload-artifact: true + upload-release-assets: false + + - name: Generate SPDX SBOM + uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 + with: + path: ./ + format: 'spdx-json' + output-file: 'dist/dbshield-spdx.sbom.json' + artifact-name: 'dbshield-spdx.sbom.json' + upload-artifact: true + upload-release-assets: false + - name: Pack Tarball run: pnpm pack