Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Add --app-vulns flag only if no json output #179

Merged

Conversation

StefanScherer
Copy link
Member

Signed-off-by: Stefan Scherer stefan.scherer@docker.com

- What I did

Unfortunately the --app-vulns flag conflicts with --json flag. By default we add the --app-vulns flag, but don't add it when the --json flag is used.
This is a follow-up PR of #178 to fix the e2e tests.

- How I did it

- How to verify it

docker scan --accept-license --json hello-world
docker scan elastic/logstash:7.13.4 | grep "Arbitrary Code Execution"

- Description for the changelog

- A picture of a cute animal (not mandatory)

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
Copy link
Member

@chris-crone chris-crone left a comment

Choose a reason for hiding this comment

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

LGTM

@chris-crone chris-crone merged commit c8da19f into docker:main Dec 11, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants