Skip to content

Commit

Permalink
fix: Repology_cve.py reference in vulnxscan
Browse files Browse the repository at this point in the history
When invoking `repology_cve` as a command the `.py`
extension is no longer required.

Signed-off-by: Brian McGee <[email protected]>
  • Loading branch information
brianmcgee authored and henrirosten committed Nov 13, 2023
1 parent 34f44df commit 3831c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/vulnxscan/vulnxscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def _pkg_is_vulnerable(repo_pkg_name, pkg_version, cve_id=None):
suffix = ".csv"
with NamedTemporaryFile(delete=True, prefix=prefix, suffix=suffix) as f:
args = f"{repo_pkg_name} {pkg_version}"
cmd = f"repology_cve.py --out={f.name} {args}"
cmd = f"repology_cve --out={f.name} {args}"
exec_cmd(cmd.split(), raise_on_error=False)
df = df_from_csv_file(f.name, exit_on_error=False)
if df is None:
Expand Down

0 comments on commit 3831c36

Please sign in to comment.