Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

AttributeError: 'effective_severity'  #47

@jurancodes

Description

@jurancodes

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

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: containeranalysisIssues related to the googleapis/python-containeranalysis API.priority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions