Skip to content

Commit 28cca1c

Browse files
committed
Scan the arm64 image for vulnerability too
1 parent f49da29 commit 28cca1c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v1
13+
- name: Set up QEMU
14+
uses: docker/setup-qemu-action@v1
1315
- name: Build
1416
env:
1517
REPO: ${{ github.repository }}
1618
shell: bash
1719
run: |
1820
echo "docker_repo=${{ env.REPO }}" >> $GITHUB_ENV
19-
make build
21+
make build && make build-arm64
2022
- name: Trivy vulnerability scanner
2123
uses: aquasecurity/[email protected]
2224
with:
@@ -26,6 +28,15 @@ jobs:
2628
ignore-unfixed: true
2729
vuln-type: 'os,library'
2830
severity: 'CRITICAL,HIGH'
31+
- name: Trivy vulnerability scanner on arm64 image
32+
uses: aquasecurity/[email protected]
33+
with:
34+
image-ref: '${{ env.docker_repo }}:latest-arm64'
35+
format: 'table'
36+
exit-code: '1'
37+
ignore-unfixed: true
38+
vuln-type: 'os,library'
39+
severity: 'CRITICAL,HIGH'
2940
test:
3041
runs-on: ubuntu-latest
3142
steps:

0 commit comments

Comments
 (0)