docker / scout-cli

Docker Scout CLI
https://docker.com/products/docker-scout
Other
252 stars 60 forks source link

Seeing "panic: runtime error" when attempting to get policy results with the "wrong" org set #63

Closed jonnyrobots closed 8 months ago

jonnyrobots commented 8 months ago
image

Repro

docker scout config organization [orgA] docker scout policy [image] --platform linux/amd64 (where image is in orgB)

Ok scenario

docker scout config organization [orgB] docker scout policy [image] --platform linux/amd64 (where image is in orgB)

rnorton5432 commented 8 months ago

Thanks. We should fail in this case, but gracefully would be better!

Worth noting however, that you can evaluate a local image against arbitrary organization's policy sets. It just won't work to fetch existing results from registry.

I've fixed this upstream and it should be in the next release.