Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Add comment explaining why we're using the nosec tag to disable bandi…
Browse files Browse the repository at this point in the history
…t checks for a piece of code.
  • Loading branch information
mcdonnnj committed Feb 27, 2020
1 parent f632cb0 commit 2f19cc6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ade/assessment_data_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def export_jira_data(jira_base_url, jira_credentials_file, jira_filter, xml_file
# Export XML data from Jira
try:
response = requests.get(
jira_url, auth=(jira_username, jira_password), verify=False # nosec
jira_url,
auth=(jira_username, jira_password),
# We need to add a nosec tag here because we are manually disabling
# certificate verification. We have to do this because the requests
# package is unable to verify the certificate used by the Jira
# server.
verify=False, # nosec
)

with open(xml_filename, "w") as xml_output:
Expand Down

0 comments on commit 2f19cc6

Please sign in to comment.