We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2e47ca commit f666bc1Copy full SHA for f666bc1
vulnerabilities/pipelines/v2_importers/github_osv_live_importer.py
@@ -1,5 +1,6 @@
1
import json
2
from typing import Iterable
3
+from typing import Optional
4
5
import requests
6
from packageurl import PackageURL
@@ -126,7 +127,7 @@ def collect_advisories(self) -> Iterable[AdvisoryData]:
126
127
}
128
129
-def build_github_repo_advisory_url(adv: dict, adv_id: str | None) -> str:
130
+def build_github_repo_advisory_url(adv: dict, adv_id: Optional[str]) -> str:
131
"""
132
Return the advisory JSON URL in the GitHub advisory-database repo, using the GHSA path:
133
advisories/github-reviewed/YYYY/MM/GHSA-ID/GHSA-ID.json
0 commit comments