Skip to content

Conversation

@brew
Copy link

@brew brew commented Sep 1, 2022

A trivy fs scan may have no .Results list if there are no manifests for
it to process. This might happen with an empty directory, for example.

This commit allows the report_generator.parse_results function to return
None if there is no Results key in the report data. print_issue will
test that the value returned by parse_results is not None before
proceeding.

Fixes #1.

brew added 2 commits September 1, 2022 11:55
A trivy fs scan may have no .Results list if there are no manifests for
it to process. This might happen with an empty directory, for example.

This commit allows the report_generator.parse_results function to return
None if there is no Results key in the report data. print_issue will
test that the value returned by parse_results is not None before
proceeding.

Fixes CemitDigital#1.
report_generator.parse_results can return None, so handle this in
report_issues.
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.

Parsing error

1 participant