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

refactor: ctr vuln show json output aggregates introduced in layer #1217

Closed
wants to merge 3 commits into from

Conversation

dmurray-lacework
Copy link
Collaborator

@dmurray-lacework dmurray-lacework commented Apr 3, 2023

Summary

To ensure the same number of results for --csv and --json output. Filter the json output and aggregate results with same vulnid introduced in different layers.

How did you test this change?

Manual

  • Compare results of lacework vuln ctr show <id>--details --json | grep ': "CVE-' | wc -l lacework vuln ctr show <id>--details --csv | grep ': "CVE-' | wc -l lacework vuln ctr show <id>--details | grep ': "CVE-' | wc -l

Tests

  • TestVulnCtrShowFilterJsonOutput

Issue

https://lacework.atlassian.net/browse/GROW-1490

Signed-off-by: Darren Murray <darren.murray@lacework.net>
Signed-off-by: Darren Murray <darren.murray@lacework.net>
@dmurray-lacework dmurray-lacework marked this pull request as ready for review April 3, 2023 13:42
@dmurray-lacework dmurray-lacework requested a review from a team as a code owner April 3, 2023 13:42
Signed-off-by: Darren Murray <darren.murray@lacework.net>
@dmurray-lacework dmurray-lacework deleted the GROW-1490 branch April 5, 2023 14:16
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.

1 participant