Skip to content

Commit 053adb9

Browse files
committed
Scan the arm64 image for vulnerability too
1 parent f49da29 commit 053adb9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
shell: bash
1717
run: |
1818
echo "docker_repo=${{ env.REPO }}" >> $GITHUB_ENV
19-
make build
19+
make build && make build-arm64
2020
- name: Trivy vulnerability scanner
2121
uses: aquasecurity/[email protected]
2222
with:
@@ -26,6 +26,15 @@ jobs:
2626
ignore-unfixed: true
2727
vuln-type: 'os,library'
2828
severity: 'CRITICAL,HIGH'
29+
- name: Trivy vulnerability scanner on arm64 image
30+
uses: aquasecurity/[email protected]
31+
with:
32+
image-ref: '${{ env.docker_repo }}:latest-arm64'
33+
format: 'table'
34+
exit-code: '1'
35+
ignore-unfixed: true
36+
vuln-type: 'os,library'
37+
severity: 'CRITICAL,HIGH'
2938
test:
3039
runs-on: ubuntu-latest
3140
steps:

0 commit comments

Comments
 (0)