Skip to content

Commit

Permalink
Fix tag deployments (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
uittenbroekrobbert authored Jun 24, 2024
2 parents 3e646b5 + 757a999 commit 41ade47
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,20 @@ jobs:
with:
sarif_file: 'trivy-results.sarif'

- name: Extract metadata for Docker
id: meta2
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} #TODO(berry): fix on git labels multiple tags
flavor: |
latest=false
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Run Trivy SBOM
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ steps.meta.outputs.tags }}
image-ref: ${{ steps.meta2.outputs.tags }}
scan-type: image
exit-code: 0
format: 'cyclonedx'
Expand All @@ -223,7 +233,7 @@ jobs:
- name: Run Trivy license scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ steps.meta.outputs.tags }}
image-ref: ${{ steps.meta2.outputs.tags }}
scan-type: image
scanners: 'license'
exit-code: 0
Expand Down Expand Up @@ -254,6 +264,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: "" # make empty to get the correct tag
flavor: |
latest=false
- name: print metadata
run: |
Expand Down

0 comments on commit 41ade47

Please sign in to comment.