File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 78
78
- name : Sign images
79
79
run : |
80
80
echo '${{ steps.build.outputs.metadata }}' | \
81
- jq '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
81
+ jq -r '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
82
82
xargs cosign sign --yes
83
83
84
84
security :
@@ -171,7 +171,6 @@ jobs:
171
171
# how to use cosign.
172
172
- name : Sign images
173
173
run : |
174
- images=$(echo '${{ steps.build.outputs.metadata }}' |
175
- jq '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"'
176
- )
177
- cosign sign --yes ${images}
174
+ echo '${{ steps.build.outputs.metadata }}' | \
175
+ jq -r '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
176
+ xargs cosign sign --yes
You can’t perform that action at this time.
0 commit comments