Return the advisory URL constructed by combining the base URL with the relative file path.
(file, base_path, url)
| 561 | |
| 562 | |
| 563 | def get_advisory_url(file, base_path, url): |
| 564 | """ |
| 565 | Return the advisory URL constructed by combining the base URL with the relative file path. |
| 566 | """ |
| 567 | relative_path = str(file.relative_to(base_path)).strip("/") |
| 568 | advisory_url = urljoin(url, relative_path) |
| 569 | return advisory_url |
| 570 | |
| 571 | |
| 572 | def purl_to_dict(purl: Union[PackageURL, str], with_empty: bool = True): |
no outgoing calls
no test coverage detected