Skip to content

Commit

Permalink
extract the first image tag to pass to Trivy (#5153)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Feb 22, 2024
1 parent b4114ba commit c154334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-plus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ jobs:
- name: Extract image name for Trivy
id: trivy-tag
run: |
tag=$(echo $DOCKER_METADATA_OUTPUT_JSON | jq -r '.tags[] | select(contains("f5-gcs-7899"))' )
tag=$(echo $DOCKER_METADATA_OUTPUT_JSON | jq -r '[ .tags[] | select(contains("f5-gcs-7899"))] | .[0]')
echo "tag=$tag" >> $GITHUB_OUTPUT
if: ${{ inputs.publish-image }}

Expand Down

0 comments on commit c154334

Please sign in to comment.