-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
At the moment attempt to generate SBOM in Windows fails to error:
#2 resolve image config for docker-image://docker.io/docker/buildkit-syft-scanner:stable-1
#2 ERROR: no match for platform in manifest: not found
I managed to get it working by building Windows version of this like this:
Binary build in Linux
export GOOS=windows
go build -o syft-scanner.exe cmd/syft-scanner/main.goDocker image build
docker build . -t ollijanatuinen/buildkit-syft-scanner:win2025
docker push ollijanatuinen/buildkit-syft-scanner:win2025Dockerfile content was simply:
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
COPY syft-scanner.exe /
ENTRYPOINT [ "C:\\syft-scanner.exe" ]Then SBOM generation works by providing parameters --provenance=true --attest type=sbom,generator=docker.io/ollijanatuinen/buildkit-syft-scanner:win2025 for docker build 🚀
However, tmpfs mount from https://github.com/moby/buildkit/blob/v0.23/frontend/attestations/sbom/sbom.go#L87 needs to be disabled as well (created moby/buildkit#6093 about that).
Metadata
Metadata
Assignees
Labels
No labels