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

Commit

Permalink
chore(deps): update dependency grafeas to v0.4.0 [(#3172)](GoogleClou…
Browse files Browse the repository at this point in the history
…dPlatform/python-docs-samples#3172)

* Update dependency grafeas to v0.4.0

* follow the field name changes

Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>
  • Loading branch information
3 people authored and busunkim96 committed Aug 7, 2020
1 parent eea5c8e commit e569c7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
google-cloud-pubsub==1.4.3
google-cloud-containeranalysis==0.3.1
grafeas==0.1.0
grafeas==0.4.0
pytest==5.3.0; python_version > "3.0"
pytest==4.6.6; python_version < "3.0"
flaky==3.6.1
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def create_note(note_id, project_id):
{
'affected_cpe_uri': 'your-uri-here',
'affected_package': 'your-package-here',
'min_affected_version': {
'affected_version_start': {
'kind': Version.VersionKind.MINIMUM
},
'fixed_version': {
Expand Down Expand Up @@ -88,7 +88,7 @@ def create_occurrence(resource_url, note_id, occurrence_project, note_project):
{
'affected_cpe_uri': 'your-uri-here',
'affected_package': 'your-package-here',
'min_affected_version': {
'affected_version': {
'kind': Version.VersionKind.MINIMUM
},
'fixed_version': {
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/samples_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def test_find_high_severity_vulnerabilities(self):
{
'affected_cpe_uri': 'your-uri-here',
'affected_package': 'your-package-here',
'min_affected_version': {
'affected_version_start': {
'kind': Version.VersionKind.MINIMUM
},
'fixed_version': {
Expand All @@ -288,7 +288,7 @@ def test_find_high_severity_vulnerabilities(self):
{
'affected_cpe_uri': 'your-uri-here',
'affected_package': 'your-package-here',
'min_affected_version': {
'affected_version': {
'kind': Version.VersionKind.MINIMUM
},
'fixed_version': {
Expand Down

0 comments on commit e569c7e

Please sign in to comment.