feat: add multi-format SBOM generation with GitHub Action#56
Open
jgamblin wants to merge 7 commits intoCERTCC:mainfrom
Open
feat: add multi-format SBOM generation with GitHub Action#56jgamblin wants to merge 7 commits intoCERTCC:mainfrom
jgamblin wants to merge 7 commits intoCERTCC:mainfrom
Conversation
Extracts CDN deps from HTML, source file versions, vendored lib versions, npm dev deps, and GitHub Actions from workflow files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Generates CycloneDX 1.6, SPDX 2.3 (JSON + tag-value), and Markdown SBOM files for 20 runtime components and 139 dev/CI dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Triggers on pushes to main that change dependency-relevant files, or via manual workflow_dispatch. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The version string in ace.js was at byte 56424, past the previous 50000 byte limit. Bumped to 60000 to reliably extract it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/sbom/with 28 tests (extraction, CycloneDX, SPDX, Markdown)Closes #53
Files
Generator modules:
scripts/generate-sbom.mjs— Main entry pointscripts/sbom/extract.mjs— Component data extraction from HTML, JS, vendored dirs, package.json, workflow YAMLscripts/sbom/cyclonedx.mjs— CycloneDX 1.6 JSON outputscripts/sbom/spdx.mjs— SPDX 2.3 JSON and tag-value outputscripts/sbom/markdown.mjs— Human-readable Markdown summaryGenerated SBOM output (
docs/sbom/):SBOM.md,cyclonedx-runtime.json,cyclonedx-dev.json,spdx-runtime.json,spdx-dev.json,spdx-runtime.spdx,spdx-dev.spdxCI/CD:
.github/workflows/generate-sbom.yml— Triggers on main push or manual dispatch, auto-opens PR with updated SBOMsTests (
tests/sbom/):extract.test.js,cyclonedx.test.js,spdx.test.js,markdown.test.jsTest plan
🤖 Generated with Claude Code