Add SBOM (Software Bill of Materials) to releases #579
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.
This PR implements SBOM generation for releases as requested in the issue. Each release will now include a complete Software Bill of Materials alongside the compiled action.
Changes Made
🔧 Enhanced Release Workflow
.github/workflows/publishing.yml
gh api repos/{repo}/dependency-graph/sbom
) to fetch comprehensive dependency informationsbom.spdx.json
📚 Documentation Update
README.md
explaining SBOM inclusion🧪 Testing
__tests__/workflow.test.ts
)@types/js-yaml
dev dependency for TypeScript supportImplementation Details
The implementation follows the original request to use dependency information from the main branch by leveraging GitHub's dependency graph API - the same data source that powers Dependabot. This ensures the SBOM contains accurate, up-to-date dependency information.
Each future release will include:
main.js
- The compiled GitHub Actionsbom.spdx.json
- Complete Software Bill of Materials in SPDX formatThe SBOM provides transparency about all dependencies used in the action, supporting security auditing and compliance requirements.
Fixes #3.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/devops-actions/load-REDACTED-info/dependency-graph/sbom
curl -s REDACTED -H Accept: application/vnd.github.v3+json
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.