Skip to content

Commit

Permalink
Update maven-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav631 authored Aug 27, 2024
1 parent b6489ec commit c660539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ jobs:
- name: upload Signed SBOM to Github Registry
run: |
# set -e # Exit on error
output2=$(cosign upload blob -f sbom.json ghcr.io/saurav631/spring-petclinic:latest 2>&1) #| jq .) #|| { echo "Failed to upload the blob to the Registry"; exit 1; }
output2=$(cosign upload blob -f cosign.bundle ghcr.io/saurav631/spring-petclinic:latest 2>&1) #| jq .) #|| { echo "Failed to upload the blob to the Registry"; exit 1; }
echo "output: $output2"
sbom_file=$(echo "$output2" | grep -oP 'sha256-[\w\d]+') || { echo "Failed to extract SBOM filename"; exit 1; }
sbom_file=$(echo "$output2" | grep -oP 'sha256:[\w\d]+') || { echo "Failed to extract SBOM filename"; exit 1; }
# Set the extracted SHA as an environment variable
echo "SBOM_FILE=$sbom_file" >> $GITHUB_ENV
Expand Down

0 comments on commit c660539

Please sign in to comment.