This repository was archived by the owner on Dec 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
AttributeError: 'effective_severity' #47
Copy link
Copy link
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: containeranalysisIssues related to the googleapis/python-containeranalysis API.Issues related to the googleapis/python-containeranalysis API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
| if v.effective_severity == Severity.HIGH or v.effective_severity == Severity.CRITICAL: |
Hello!
When I use v.effective_severity, the script raise this error:
.venv\lib\site-packages\proto\message.py", line 515, in getattr
raise AttributeError(str(ex))
AttributeError: 'effective_severity'
I had it fixed by changing v.effective_severity into v.vulnerability.effective_severity because the effective_severity object is inside vulnerability, as seen in:
vulnerability {
severity: 4
cvss_score: 7.8
package_issue {
affected_cpe_uri: "cpe:/o:debian:debian_linux:10"
affected_package: "linux"
affected_version {
name: "4.19.132"
revision: "1"
kind: 1
full_name: "4.19.132-1"
}
fixed_cpe_uri: "cpe:/o:debian:debian_linux:10"
fixed_version {
kind: 3
}
}
short_description: "CVE-2019-10124"
long_description: "NIST vectors: AV:N/AC:L/Au:N/C:N/I:N/A:C"
related_urls {
url: "https://security-tracker.debian.org/tracker/CVE-2019-10124"
label: "More Info"
}
effective_severity: 4
}If this is correct, it may also need to update the documentation that reference it (if not done automatically):
https://cloud.google.com/container-registry/docs/tutorial-vulnerability-scan?#listing_high-severity_vulnerabilities
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: containeranalysisIssues related to the googleapis/python-containeranalysis API.Issues related to the googleapis/python-containeranalysis API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.