Skip to content

Commit

Permalink
Split scout command into matrix jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ashenm committed Mar 22, 2024
1 parent c2586bb commit 80a9274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ jobs:
matrix:
source: ${{ fromJSON(needs.metadata.outputs.build_flavours) }}
platform: ${{ fromJSON(needs.metadata.outputs.build_platforms) }}
scout: ["compare", "cves", "recommendations"]
steps:
- run: |
DOCKER_IMAGE_TARGET_PLATFORM=${{ matrix.platform }}
Expand All @@ -263,7 +264,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/scout-action@v1
with:
command: compare,cves,recommendations
command: ${{ matrix.scout }}
image: ${{ env.DOCKER_IMAGE_REFERENCE }}
to: ${{ github.repository }}:${{ matrix.source }}
platform: ${{ matrix.platform }}
Expand Down

0 comments on commit 80a9274

Please sign in to comment.