Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
There was a problem hiding this comment.
Pull request overview
This PR introduces automated Software Bill of Materials (SBOM) generation using CycloneDX's cdxgen tool. The workflow triggers on pushes to main/release branches and version tags, generating an SBOM artifact for dependency tracking and security compliance.
Key changes:
- New GitHub Actions workflow that runs on push events to main, release branches, and version tags
- Integration of CycloneDX cdxgen tool via Docker to generate SBOM in JSON format
- Automatic artifact upload of generated SBOM for downstream consumption
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/sbom.yml
Outdated
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | ||
|
|
||
| - name: Generate SBOM | ||
| run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json |
There was a problem hiding this comment.
The Docker command uses
| run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json | |
| run: docker run --rm -v /tmp:/tmp -v ${{ github.workspace }}:/app:ro -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json |
.github/workflows/sbom.yml
Outdated
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | ||
|
|
||
| - name: Generate SBOM | ||
| run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json |
There was a problem hiding this comment.
The cdxgen Docker image is not pinned to a specific version or digest, which can lead to unpredictable behavior and potential security issues. Pin the image to a specific version tag or SHA256 digest (e.g., ghcr.io/cyclonedx/cdxgen@sha256:... or ghcr.io/cyclonedx/cdxgen:v10.0.0).
| run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen -r /app -o /tmp/bom.json | |
| run: docker run --rm -v /tmp:/tmp -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen:v10.0.0 -r /app -o /tmp/bom.json |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.