never meant

'Cause you can't miss what you forget

【Docker】docker scan をして 400 Bad Request と返ってきたのは、synk のログインができてなかったからだった。

起きたこと

docker scan したらこけた。

% docker scan cowai/getting-started
Docker Scan relies upon access to Snyk, a third party provider, do you consent to proceed using Snyk? (y/N)
y
failed to get DockerScanID: bad status code "400 Bad Request"

対処

synk と Docker ID をつなげるためにログインする

% docker scan --login

Now redirecting you to our auth page, go ahead and log in,
and once the auth is complete, return to this prompt and you'll
be ready to start using snyk.

If you can't wait use this url:
https://snyk.io/login?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&utm_medium=Partner&utm_source=Docker&utm_campaign=Docker-Desktop-2020&os=darwin&docker=false

ブラウザが立ち上がるのでつなげる

f:id:cowai5:20211126012604p:plain f:id:cowai5:20211126012607p:plain

参考

forums.docker.com