Skip to content

Commit

Permalink
build: try to fix transparency log index detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Dec 20, 2024
1 parent c0f3178 commit 3fe7d13
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,21 @@ jobs:

- name: Sign PHAR file using Cosign
run: |
INDEX=$(cosign sign-blob --yes --output-signature n98-magerun2.phar.sig n98-magerun2.phar | grep "tlog entry created with index:" | awk '{print $NF}')
INDEX=$(cosign sign-blob --yes --output-signature n98-magerun2.phar.sig n98-magerun2.phar | grep "tlog entry created with index:" | awk -F': ' '{print $2}')
if [ -z "$INDEX" ]; then
echo "Error: Transparency Log Entry Index not found!" >&2
exit 1
fi
echo "Transparency Log Entry Index: $INDEX"
echo "REKOR_ENTRY_INDEX=$INDEX" >> $GITHUB_ENV
- name: Display Rekor Transparency Log URL
run: |
echo "Rekor Transparency Log Entry: https://rekor.sigstore.dev/api/v1/log/entries/${{ env.REKOR_ENTRY_INDEX }}"
echo "Rekor Transparency Log Entry: https://rekor.sigstore.dev/api/v1/log/entries/$REKOR_ENTRY_INDEX"
- name: Create Rekor Annotation
run: |
echo "::notice file=n98-magerun2.phar::Rekor Transparency Log Entry: https://rekor.sigstore.dev/api/v1/log/entries/${{ env.REKOR_ENTRY_INDEX }}"
echo "::notice file=n98-magerun2.phar::Rekor Transparency Log Entry: https://rekor.sigstore.dev/api/v1/log/entries/$REKOR_ENTRY_INDEX"
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
Expand Down

0 comments on commit 3fe7d13

Please sign in to comment.