Fix all high and medium severity security issues found by Bandit

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-07 19:35:40 +00:00
parent 68143a2689
commit edd1acb3a1
13 changed files with 55 additions and 23 deletions
+3 -2
View File
@@ -134,7 +134,7 @@ def create_upload_session(filename, folder_path, access_token):
logger.info(f"Creating upload session for {filename} at path {folder_path}")
response = requests.post(url, headers=headers, json=request_body)
response = requests.post(url, headers=headers, json=request_body, timeout=settings.http_request_timeout)
if response.status_code == 200:
upload_url = response.json().get("uploadUrl")
@@ -190,7 +190,8 @@ def upload_large_file(file_path, upload_url):
response = requests.put(
upload_url,
headers=headers,
data=chunk
data=chunk,
timeout=settings.http_request_timeout
)
# Check if successful