Skip to content

Commit 0a3d2c9

Browse files
authored
Merge pull request #379 from coreruleset/fix/release-action
ci(publish): add key for matrix.target
2 parents 4a9387f + 995ef5d commit 0a3d2c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ jobs:
7373
provenance: true
7474
sbom: true
7575

76-
- name: Sign the images with GitHub OIDC Token
76+
- name: 'Sign the image for ${{ matrix.target }} with GitHub OIDC Token'
7777
env:
7878
METADATA: ${{ steps.build-and-push.outputs.metadata }}
7979
run: |
80-
DIGEST=$(echo ${METADATA} | jq -r '.[] | ."containerimage.digest"')
81-
TAGS=$(echo ${METADATA} | jq -r '.[] | ."image.name" | tostring' | tr ',' '\n')
80+
DIGEST=$(echo ${METADATA} | jq -r '."${{ matrix.target }}" ."containerimage.digest"')
81+
TAGS=$(echo ${METADATA} | jq -r '."${{ matrix.target }}" ."image.name" | tostring' | tr ',' '\n')
8282
images=""
8383
for tag in ${TAGS}; do
8484
images+="${tag}@${DIGEST} "

0 commit comments

Comments
 (0)