@@ -28,7 +28,7 @@ class AlmalinuxImporterPipeline(VulnerableCodeBaseImporterPipeline):
2828 spdx_license_expression = "MIT"
2929 license_url = "https://github.com/AlmaLinux/osv-database/blob/master/LICENSE"
3030 importer_name = "Almalinux Importer"
31- repo_url = "https://github.com/AlmaLinux/osv-database"
31+ repo_url = "git+ https://github.com/AlmaLinux/osv-database"
3232
3333 @classmethod
3434 def steps (cls ):
@@ -44,22 +44,23 @@ def clone(self):
4444 self .vcs_response = fetch_via_vcs (self .repo_url )
4545
4646 def advisories_count (self ):
47- vuln_directory = Path (self .vcs_response .dest_dir ) / "tree" / "master" / " advisories"
47+ vuln_directory = Path (self .vcs_response .dest_dir ) / "advisories"
4848 return sum (1 for _ in vuln_directory .rglob ("*.json" ))
4949
5050 def collect_advisories (self ) -> Iterable [AdvisoryData ]:
51- base_path = Path (self .vcs_response .dest_dir )
52- vuln_directory = base_path / "tree" / "master" / "advisories"
51+ base_directory = Path (self .vcs_response .dest_dir )
52+ vuln_directory = base_directory / "advisories"
53+
5354 for file in vuln_directory .rglob ("*.json" ):
5455 advisory_url = get_advisory_url (
5556 file = file ,
56- base_path = base_path ,
57- url = "https://github.com/AlmaLinux/osv-database/blob/master" ,
57+ base_path = base_directory ,
58+ url = "https://github.com/AlmaLinux/osv-database/blob/master/ " ,
5859 )
5960 with open (file ) as f :
6061 raw_data = json .load (f )
6162 yield parse_advisory_data (
62- raw_data = raw_data , supported_ecosystems = "rpm" , advisory_url = advisory_url
63+ raw_data = raw_data , supported_ecosystems = [ "rpm" ] , advisory_url = advisory_url
6364 )
6465
6566 def clean_downloads (self ):
0 commit comments