-
Notifications
You must be signed in to change notification settings - Fork 22
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: enabling exit codes for general cli o/p and updating field names #43
Conversation
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.
Please also fix the spelling in
cli-tools/analyses/summary/types.go
Line 15 in 5254513
TotalVulnerabilities int `json:"total_vulnerabilites"` |
Change needed: vulnerabilites -> vulnerabilities
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.
LGTM
analyses/verbose/types.go
Outdated
@@ -29,7 +29,7 @@ type DependenciesType struct { | |||
Transitives []DependenciesType `json:"transitives"` | |||
LatestVersion string `json:"latest_version"` | |||
RecommendedVersion string `json:"recommended_version"` | |||
CommonlyKnownVulnerabilities []VulnerabilityType `json:"commonly_known_vulnerabilities"` | |||
CommonlyKnownVulnerabilities []VulnerabilityType `json:"publicly_available_vulnerabilities"` |
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.
Should we change the field name as well? @yzainee ?
CommonlyKnownVulnerabilities => PubliclyAvailableVulnerabilities?
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.
it wouldnt matter much in the end. will leave it to @deepak1725
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.
@arajkumar its internal usage only.. I feel it's okay to keep it as it is.
Please let me know if you have strong opinions regarding that.
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.
Anyway, included that update also
CommonlyKnownVulnerabilities => PubliclyAvailableVulnerabilities?
Enabling exit codes for general CLI output and updating field names
Jira: https://issues.redhat.com/browse/APPAI-1816