Skip to content

Commit 274a307

Browse files
authored
chore: Add # nosec comment for bandit (#1401)
* Mark urlopen as reviewed for bandit
1 parent 303376e commit 274a307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cve_bin_tool/available_fix/debian_cve_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def update_json():
9393
"""Update the Debian CVE JSON file"""
9494

9595
LOGGER.info("Updating Debian CVE JSON file for checking available fixes.")
96-
response = request.urlopen(JSON_URL).read().decode("utf-8")
96+
response = request.urlopen(JSON_URL).read().decode("utf-8") # nosec - static url
9797
response = loads(response)
9898
with open(DEB_CVE_JSON_PATH, "w") as debian_json:
9999
dump(response, debian_json, indent=4)

0 commit comments

Comments
 (0)