Skip to content

Commit 63e2a7f

Browse files
committed
fix: jq command
1 parent 504be3a commit 63e2a7f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/bake.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
- name: Sign images
7979
run: |
8080
echo '${{ steps.build.outputs.metadata }}' | \
81-
jq '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
81+
jq -r '.[] | (."image.name" | sub(",.*";"" )) + "@" + ."containerimage.digest"' | \
8282
xargs cosign sign --yes
8383
8484
security:
@@ -171,7 +171,6 @@ jobs:
171171
# how to use cosign.
172172
- name: Sign images
173173
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

0 commit comments

Comments
 (0)