-
-
Couldn't load subscription status.
- Fork 239
Add Curl Live Importer V2 #1923
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
base: main
Are you sure you want to change the base?
Conversation
vulnerabilities/importers/curl.py
Outdated
| except Exception as e: | ||
| logger.error(f"Error checking version {self.purl.version}: {e}") | ||
| continue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better catch specific exceptions InvalidVersion
vulnerabilities/importers/curl.py
Outdated
| super().__init__(*args, **kwargs) | ||
| self.purl = purl | ||
| if self.purl: | ||
| if self.purl.type != "generic" or self.purl.name != "curl": | ||
| print( | ||
| f"Warning: This importer handles curl package vulnerabilities. Current PURL: {self.purl!s}" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| super().__init__(*args, **kwargs) | |
| self.purl = purl | |
| if self.purl: | |
| if self.purl.type != "generic" or self.purl.name != "curl": | |
| print( | |
| f"Warning: This importer handles curl package vulnerabilities. Current PURL: {self.purl!s}" | |
| ) | |
| super().__init__(*args, **kwargs) | |
| self.purl = purl | |
| if self.purl and (self.purl.type != "generic" or self.purl.name != "curl"): | |
| print( | |
| f"Warning: This importer handles curl package vulnerabilities. Current PURL: {self.purl!s}" | |
| ) | |
* Add Curl Live V2 Importer * Add tests for the Curl Live V2 Importer * Tested functionally using the Live Evaluation API in #1969 Signed-off-by: Michael Ehab Mikhail <[email protected]>
f228798 to
5c8f008
Compare
Signed-off-by: Michael Ehab Mikhail <[email protected]>
Solves #1918