Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Snyk scan suggestion when building #8247

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

ulyssessouza
Copy link
Collaborator

@ulyssessouza ulyssessouza marked this pull request as draft April 1, 2021 07:15
@ulyssessouza ulyssessouza force-pushed the scan-suggestion branch 3 times, most recently from ecdd442 to de63ae2 Compare April 1, 2021 12:08
compose/cli/scan_suggest.py Outdated Show resolved Hide resolved
Copy link
Contributor

@gtardif gtardif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually building & testing the branch, I don't manage to see the scan suggest message on mac or windows.
I suppose this is because you expect the optin field to be defined in the config json file, by default after desktop install this config fileexist but does not have the field defined, it gets defined only after a first run of docker scan. This is when the scan suggest message should be displayed, where optin is not present in the config json

Copy link
Contributor

@gtardif gtardif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked on windows, displays the message, and does not display it anymore after a docker scan invocation, LGTM

Copy link
Contributor

@aiordache aiordache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on osx. It displays the scan suggestion on build. After running docker scan, the message no longer appears.

@aiordache aiordache marked this pull request as ready for review April 6, 2021 09:06
@aiordache aiordache merged commit 3c9ee67 into docker:master Apr 6, 2021
@aiordache aiordache added this to the 1.29.0 milestone Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants