Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
follow the field name changes
  • Loading branch information
Takashi Matsuo
Takashi Matsuo committed May 17, 2020
commit c71aa7250de9f36c6c83c049d9f804d02d8363de
4 changes: 2 additions & 2 deletions container_registry/container_analysis/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 container_registry/container_analysis/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