Skip to content

Commit a94cb2c

Browse files
authored
fix: SBOM SPDX generation
- Ignore if DockerHub - Remove artifact name (not needed, cos not uploading) - Update from 0.15.4 to 0.20.01
1 parent bd048d0 commit a94cb2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,13 @@ jobs:
120120
echo "safe_tag=${SAFE_TAG}" >> $GITHUB_OUTPUT
121121
122122
- name: 🔐 Generate SBOM (SPDX)
123-
if: github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run != 'true'
123+
if: matrix.target == 'ghcr' && (github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run != 'true')
124124
id: sbom
125-
uses: anchore/sbom-action@v0.15.4
125+
uses: anchore/sbom-action@v0.20.01
126126
with:
127127
image: ${{ matrix.image }}:${{ steps.docker_tags.outputs.tag_name }}
128128
format: spdx-json
129129
output-file: sbom.spdx.json
130-
artifact-name: domain-locker-sbom-${{ steps.safe_tag.outputs.safe_tag }}
131130
upload-artifact: false
132131

133132
- name: 🪪 Attest SBOM to registry

0 commit comments

Comments
 (0)