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 severity when report contains no vulnerabilities #92

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

pkalemba
Copy link
Contributor

fixes: #91

@pkalemba
Copy link
Contributor Author

@pederhan can you look ? After upgrade to newest harbor this issue is a blocker for me

@pkalemba
Copy link
Contributor Author

Bumping to 0.25.2 does not help

@pederhan
Copy link
Member

Sorry for the delay. I will take a look ASAP.

Copy link
Member

@pederhan pederhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The validator needs to be added to the code generation "fragment" for HarborVulnerabilityReport: https://github.com/unioslo/harborapi/blob/main/codegen/ast/fragments/scanner/harborvulnerabilityreport.py

I don't have permission to edit this PR's branch, so I have made a PR to yours here: pkalemba#1

Copy link
Member

@pederhan pederhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for your contribution and sorry again for the delay.

@pederhan pederhan merged commit 4f1e02c into unioslo:main Aug 26, 2024
5 checks passed
@pkalemba
Copy link
Contributor Author

No problem , i assume this is normal during summer on university :)

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.

get_artifact_vulnerability_reports() Raises a Validation Error when report has no vulnerabilites
2 participants