mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
added nosec comment
This commit is contained in:
@@ -45,7 +45,7 @@ def test_completed_lockfile(host):
|
|||||||
def get_version(url):
|
def get_version(url):
|
||||||
assert url.lower().startswith('http')
|
assert url.lower().startswith('http')
|
||||||
upstream_req = urllib.request.Request(url)
|
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_json = json.load(upstream_response)
|
||||||
upstream = upstream_json['_embedded']['versions'][0]['name']
|
upstream = upstream_json['_embedded']['versions'][0]['name']
|
||||||
return upstream
|
return upstream
|
||||||
|
|||||||
Reference in New Issue
Block a user