Skip to content

Commit

Permalink
add ci image vulnerability scanner (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
willtsai authored Sep 25, 2024
1 parent c819bd0 commit 291aa3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ jobs:
with:
context: ./${{ matrix.directory }}
push: ${{ github.event_name == 'push' && true || false }}
tags: ${{ env.CONTAINER_REGISTRY }}/${{ matrix.image }}:${{ env.VERSION }}
tags: ${{ env.CONTAINER_REGISTRY }}/${{ matrix.image }}:${{ env.VERSION }}
- name: Scan for vulnerabilities in ${{ matrix.image }}
uses: crazy-max/ghaction-container-scan@v3
with:
image: ${{ env.CONTAINER_REGISTRY }}/${{ matrix.image }}:${{ env.VERSION }}

0 comments on commit 291aa3d

Please sign in to comment.