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: don't accumulate result state with rhel provider #253

Merged
merged 3 commits into from
Jul 27, 2023

Conversation

westonsteimel
Copy link
Contributor

@westonsteimel westonsteimel commented Jul 26, 2023

Sets the result store policy for the rhel provider to DELETE_BEFORE_WRITE. There shouldn't be a reason for the rhel provider to need to accumulate result state between runs as it always iterates over the full input set. This will address an issue where vulnerabilities marked as not-affected don't get dropped from the results.

This also addresses an issue where vulnerability records were not being properly created for out-of-support entries

Fixes #252

@westonsteimel westonsteimel added the run-pr-quality-gate Triggers running of quality gate on PRs label Jul 26, 2023
@westonsteimel westonsteimel requested a review from a team July 26, 2023 19:54
@westonsteimel westonsteimel force-pushed the rhel-provider-dont-accumulate-results branch from 6646f74 to 85b42ba Compare July 27, 2023 10:17
Sets the result store policy for the `rhel` provider to
`DELETE_BEFORE_WRITE`.  There shouldn't be a reason for the rhel
provider to need to accumulate result state between runs as it always
iterates over the full input set.  This will address an issue where
vulnerabilities marked as `not-affected` don't get dropped from the
results.

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
…ore recent release

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
@westonsteimel westonsteimel force-pushed the rhel-provider-dont-accumulate-results branch from 85b42ba to 25a8808 Compare July 27, 2023 10:29
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
@westonsteimel westonsteimel force-pushed the rhel-provider-dont-accumulate-results branch from 2e116f0 to fea1289 Compare July 27, 2023 13:19
@westonsteimel westonsteimel merged commit 9977f6d into main Jul 27, 2023
6 checks passed
@westonsteimel westonsteimel deleted the rhel-provider-dont-accumulate-results branch July 27, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-pr-quality-gate Triggers running of quality gate on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rhel: handle cases where a vulnerability transitions to not-affected
2 participants