We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4987de6 commit 8672ae7Copy full SHA for 8672ae7
scripts/build_docker.sh
@@ -154,14 +154,14 @@ if [[ "$push" == 1 ]]; then
154
fi
155
156
log "--- Generating SBOM for Docker image ($image_tag)"
157
-syft "$image_tag" -o spdx-json >"${image_tag}.spdx.json"
+syft "$image_tag" -o spdx-json >"${image_tag//:/_}.spdx.json"
158
159
if [[ "$push" == 1 ]]; then
160
log "--- Attesting SBOM to Docker image for $arch ($image_tag)"
161
COSIGN_EXPERIMENTAL=1 cosign clean "$image_tag"
162
163
COSIGN_EXPERIMENTAL=1 cosign attest --type spdxjson \
164
- --predicate "${image_tag}.spdx.json" \
+ --predicate "${image_tag//:/_}.spdx.json" \
165
--yes \
166
"$image_tag"
167
0 commit comments