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

secscan: implement basescore/cveid (PROJQUAY-6697) #2684

Merged
merged 4 commits into from
Mar 20, 2024

Conversation

arborite-rh
Copy link
Contributor

@arborite-rh arborite-rh commented Feb 16, 2024

This implements FEDRAMP requirements of providing BaseScores and CVE IDs for a given version of software/vulnerabilities associated with it.

The goal is for this to be a temporary stop-gap solution until these values are available through the Clair API and eventually ACS services.

The design of this PR currently utilizes the existing endpoint and builds the two new fields into the Features object. This shouldn't have any adverse effect on clients. I've manually tested the UI and everything still looks good/loads as expected.

The majority of the changes in this PR come from updating the JSON files for unit-testing, and lots of new line from make black linting.

Example screenshot of the new JSON response for this endpoint:
image

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (00d983b) 70.70% compared to head (9e8edef) 70.71%.
Report is 5 commits behind head on master.

Files Patch % Lines
data/secscan_model/secscan_v4_model.py 57.14% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2684   +/-   ##
=======================================
  Coverage   70.70%   70.71%           
=======================================
  Files         435      436    +1     
  Lines       40181    40234   +53     
  Branches     5225     5237   +12     
=======================================
+ Hits        28411    28451   +40     
- Misses      10117    10126    +9     
- Partials     1653     1657    +4     
Flag Coverage Δ
unit 70.71% <73.91%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arborite-rh arborite-rh marked this pull request as ready for review February 16, 2024 17:39
Signed-off-by: Ross Bryan <robryan@redhat.com>
Signed-off-by: Ross Bryan <robryan@redhat.com>
Signed-off-by: Ross Bryan <robryan@redhat.com>
Signed-off-by: Ross Bryan <robryan@redhat.com>
@dmage dmage merged commit 66fbe49 into quay:master Mar 20, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants