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

fix: take VEX docs into account when --fail-on is set #1657

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

ferozsalam
Copy link
Contributor

@ferozsalam ferozsalam commented Jan 14, 2024

Previously, VEX documents provided to Grype when --fail-on was set were not
taken into account. That led to inconsistent behaviour where a vulnerability
would be ignored when only --vex was specified, but would be included in
Grype output when both --vex and --fail-on were specified.

This change fixes that by moving the failure severity check to after the VEX
documents provided are tested.

I have also added a unit test to check that the combination of VEX docs and
failure severity checks works as expected.

I also took the opportunity to fix some typos while I was poking around.

fixes #1639

Previously, VEX documents provided to Grype when --fail-on was set were not
taken into account. That led to inconsistent behaviour where a vulnerability
would be ignored when only `--vex` was specified, but would be included in
Grype output when both `--vex` and `--fail-on` were specified.

This change fixes that by moving the failure severity check to after the VEX
documents provided are tested.

I have also added a unit test to check that the combination of VEX docs and
failure severity checks works as expected.

Signed-off-by: Feroz Salam <feroz.salam@isovalent.com>
Signed-off-by: Feroz Salam <feroz.salam@isovalent.com>
@ferozsalam
Copy link
Contributor Author

Hi @tgerla – I was wondering what sort of timescales I should expect for a review on this change?

@wagoodman wagoodman merged commit a3ade42 into anchore:main Jan 23, 2024
9 checks passed
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.

VEX documents not taken into account when --fail-on is set
2 participants