Skip to content

Commit 348370f

Browse files
committed
Update repo url and add datasource_id for vmware photon
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
1 parent e2e4072 commit 348370f

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

vulnerabilities/pipelines/v2_importers/vmware_photon_importer_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ class VmwarePhotonImporterPipeline(VulnerableCodeBaseImporterPipelineV2):
3838
"""
3939

4040
pipeline_id = "vmware_photon_importer_v2"
41+
datasource_id = "vmware_photon"
4142
spdx_license_expression = "CC BY-SA 4.0"
4243
license_url = "https://creativecommons.org/licenses/by-sa/4.0"
43-
repo_url = "https://packages.vmware.com/photon/photon_cve_metadata/"
44+
repo_url = "https://packages.broadcom.com/photon/photon_cve_metadata/"
4445

4546
precedence = 100
4647

vulnerabilities/tests/pipelines/v2_importers/test_vmware_photon_importer_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_collect_advisories(self, mock_fetch):
3232
"""
3333

3434
def side_effect(url):
35-
if url == "https://packages.vmware.com/photon/photon_cve_metadata/":
35+
if url == "https://packages.broadcom.com/photon/photon_cve_metadata/":
3636
return Mock(text=index_html)
3737
if "cve_data_photon4.0.json" in url:
3838
return Mock(json=lambda: sample_data)

vulnerabilities/tests/test_data/vmware_photon/expected.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
],
171171
"date_published": null,
172172
"weaknesses": [],
173-
"url": "https://packages.vmware.com/photon/photon_cve_metadata/cve_data_photon4.0.json"
173+
"url": "https://packages.broadcom.com/photon/photon_cve_metadata/cve_data_photon4.0.json"
174174
},
175175
{
176176
"advisory_id": "CVE-2021-45417",
@@ -203,6 +203,6 @@
203203
],
204204
"date_published": null,
205205
"weaknesses": [],
206-
"url": "https://packages.vmware.com/photon/photon_cve_metadata/cve_data_photon4.0.json"
206+
"url": "https://packages.broadcom.com/photon/photon_cve_metadata/cve_data_photon4.0.json"
207207
}
208208
]

0 commit comments

Comments
 (0)