From e593fcd8dcbb921a90483c792eb6bd390d1177bc Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 23 Apr 2020 23:57:59 +0000 Subject: [PATCH 1/2] Update dependency grafeas to v0.4.0 --- container_registry/container_analysis/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_registry/container_analysis/requirements.txt b/container_registry/container_analysis/requirements.txt index 98bceafbc5f6..e2cfb36f8094 100644 --- a/container_registry/container_analysis/requirements.txt +++ b/container_registry/container_analysis/requirements.txt @@ -1,6 +1,6 @@ google-cloud-pubsub==1.4.2 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 From c71aa7250de9f36c6c83c049d9f804d02d8363de Mon Sep 17 00:00:00 2001 From: Takashi Matsuo Date: Sun, 17 May 2020 04:11:28 +0000 Subject: [PATCH 2/2] follow the field name changes --- container_registry/container_analysis/samples.py | 4 ++-- container_registry/container_analysis/samples_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/container_registry/container_analysis/samples.py b/container_registry/container_analysis/samples.py index 2eeda1cae81a..c663e4dac013 100644 --- a/container_registry/container_analysis/samples.py +++ b/container_registry/container_analysis/samples.py @@ -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': { @@ -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': { diff --git a/container_registry/container_analysis/samples_test.py b/container_registry/container_analysis/samples_test.py index a8552e54742b..535544e4265f 100644 --- a/container_registry/container_analysis/samples_test.py +++ b/container_registry/container_analysis/samples_test.py @@ -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': { @@ -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': {