ci: upload the SBOM to DependencyTrack for releases only
Manual test builds (test-<sha>) left throwaway project versions in DependencyTrack; the SBOM is still generated (log shows the component count). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
79a4e649d1
commit
035755f13f
1 file changed
+3
@@ -101,7 +101,10 @@ jobs:
|
||||
syft "registry:$IMAGE:${{ steps.meta.outputs.tag }}" --platform linux/amd64 -o cyclonedx-json=sbom.cdx.json
|
||||
echo "components: $(grep -o '"bom-ref"' sbom.cdx.json | wc -l)"
|
||||
|
||||
# Releases only: manual test builds (test-<sha>) would otherwise leave throwaway project
|
||||
# versions in DependencyTrack.
|
||||
- name: upload SBOM to DependencyTrack
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
DT_API_KEY: ${{ secrets.DT_API_KEY }}
|
||||
run: |
|
||||
|
||||
Reference in new issue
Block a user