mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2026-05-05 03:56:14 +02:00
Fix Trivy arm64 scan: set TRIVY_PLATFORM to match image architecture
Trivy defaults to linux/amd64 when resolving remote image digests. On the arm64 build job, the pushed digest is a single-platform arm64 image, so Trivy fails with 'no child with platform linux/amd64'. Setting TRIVY_PLATFORM=linux/arm64 resolves this.
This commit is contained in:
parent
16e3efbe11
commit
dcfee5ae32
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -187,6 +187,8 @@ jobs:
|
||||
|
||||
- name: Run Trivy vulnerability scanner (arm64)
|
||||
uses: aquasecurity/trivy-action@0.33.1
|
||||
env:
|
||||
TRIVY_PLATFORM: linux/arm64
|
||||
with:
|
||||
image-ref: 'ghcr.io/netbootxyz/netbootxyz@${{ steps.build.outputs.digest }}'
|
||||
version: 'v0.69.3'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user