File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,20 @@ jobs:
81
81
env :
82
82
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
83
GITHUB_SBOM_PATH : ./sbom.spdx.json
84
- # parse metadata to the format required for image attestation
84
+ # parse artifacts to the format required for image attestation
85
85
- run : |
86
- echo "digest=$(echo "$METADATA " | jq -r '.[]|select(.type=="Docker Manifest")|select(.name|test(":v"))|.extra.Digest')" >> "$GITHUB_OUTPUT"
87
- echo "name=$(echo "$METADATA " | jq -r '.[]|select(.type=="Docker Manifest")|select(.name|test(":v"))|.name|split(":")[0]')" >> "$GITHUB_OUTPUT"
88
- id: artifact_metadata
86
+ echo "digest=$(echo "$ARTIFACTS " | jq -r '.[]|select(.type=="Docker Manifest")|select(.name|test(":v"))|.extra.Digest')" >> "$GITHUB_OUTPUT"
87
+ echo "name=$(echo "$ARTIFACTS " | jq -r '.[]|select(.type=="Docker Manifest")|select(.name|test(":v"))|.name|split(":")[0]')" >> "$GITHUB_OUTPUT"
88
+ id: image_metadata
89
89
env:
90
- METADATA : ${{steps.goreleaser.outputs.metadata }}
90
+ ARTIFACTS : ${{steps.goreleaser.outputs.artifacts }}
91
91
# attest archives
92
92
- uses : actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
93
93
with :
94
94
subject-path : " dist/*.tar.gz"
95
95
# attest images
96
96
- uses : actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
97
97
with :
98
- subject-digest : ${{steps.artifact_metadata .outputs.digest}}
99
- subject-name : ${{steps.artifact_metadata .outputs.name}}
98
+ subject-digest : ${{steps.image_metadata .outputs.digest}}
99
+ subject-name : ${{steps.image_metadata .outputs.name}}
100
100
push-to-registry : true
You can’t perform that action at this time.
0 commit comments