I have configured the Clair scanner to analyse a Chainguard image for python however it is failing with below error
$ ./clair-scanner -c http://docker:6060 --ip $(hostname -i) -r sast-container-report.json -l clair.log -w clair-whitelist.yml ${BUILD_IMAGE}
2024/06/10 12:57:47 [INFO] ▶ Start clair-scanner
2024/06/10 12:57:51 [INFO] ▶ Server listening on port 9279
2024/06/10 12:57:51 [INFO] ▶ Analyzing 1cfdc9367f770d08c8ce106255039493a76650bcdbf0fc8c41e31fdfd696dff6
2024/06/10 12:57:51 [CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 422 with message {"Error":{"Message":"worker: OS and/or package manager are not supported"}}
Docker Image:
cgr.dev/chainguard/python@sha256:6a7100769a082ca01772e302b6fce08a28ea4225bb73fbf1e00dbc0147f79900
https://edu.chainguard.dev/chainguard/chainguard-images/reference/python/tags_history/
I have tried to check if there are any similar issues with Clair scanning with Chainguard images but could not find any. Also, please note that scanning is working for the below distroless image.
gcr.io/distroless/python3-debian12:nonroot
I am not sure why Clair scanning is not working for Chainguard image. Please advise.