added nosec comment

This commit is contained in:
nghazalibeiklar
2022-06-23 17:16:41 +10:00
parent 6dbc96cd6d
commit 0f08266af5

View File

@@ -45,7 +45,7 @@ def test_completed_lockfile(host):
def get_version(url):
assert url.lower().startswith('http')
upstream_req = urllib.request.Request(url)
with urllib.request.urlopen(upstream_req) as upstream_response:
with urllib.request.urlopen(upstream_req) as upstream_response: #nosec
upstream_json = json.load(upstream_response)
upstream = upstream_json['_embedded']['versions'][0]['name']
return upstream