Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

fix: effective_severity attribute error #104

Merged
merged 1 commit into from
Mar 25, 2021
Merged

Conversation

askmeegs
Copy link
Contributor

Fixes #47

How to test the sample -

  1. clone repo
  2. go to a GCP project > Container Registry > Settings > Enable Vulnerability scanning
  3. push the ubuntu bionic image to GCR in your project (see docs)
  4. set up virtualenv + install packages, making sure GOOGLE_APPLICATION_CREDENTIALS env var is set for your project
  5. run the sample function where project_id is your project ID, and resource URL is this:
https://gcr.io/{project_id}/ubuntu@sha256:{sha_hash}

You can get the sha_hash by going to container registry > your image > clicking "copy full image name," and you should get something like this -

gcr.io/megan-fall20/ubuntu@sha256:32776cc92b5810ce72e77aca1d949de1f348e1d281d3f00ebcc22a3adcdc9f42

Where 327... is the sha_hash.

@askmeegs askmeegs requested a review from a team as a code owner March 25, 2021 14:29
@askmeegs askmeegs requested review from dinagraves and removed request for a team March 25, 2021 14:29
@product-auto-label product-auto-label bot added api: containeranalysis Issues related to the googleapis/python-containeranalysis API. samples Issues that are directly related to samples. labels Mar 25, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 25, 2021
@askmeegs askmeegs changed the title samples: Fix effective_severity attribute error fix: effective_severity attribute error Mar 25, 2021
@askmeegs askmeegs removed the request for review from dinagraves March 25, 2021 14:30
Copy link
Member

@Shabirmean Shabirmean left a comment

Choose a reason for hiding this comment

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

LGTM!

@askmeegs askmeegs merged commit 913251a into master Mar 25, 2021
@askmeegs askmeegs deleted the effective-severity-fix branch March 25, 2021 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: containeranalysis Issues related to the googleapis/python-containeranalysis API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'effective_severity'
2 participants