From d7ef9f9b93a9d21de59e9c1df6f3878d6a2109e5 Mon Sep 17 00:00:00 2001 From: Michael Collins <15347726+michaeljcollinsuk@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:32:33 +0100 Subject: [PATCH] Ignore gitleaks false positives --- controlpanel/api/cluster.py | 2 +- tests/api/test_auth0.py | 6 +++--- tests/api/test_authentication.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controlpanel/api/cluster.py b/controlpanel/api/cluster.py index 62a8f3e9f..b441cfde1 100644 --- a/controlpanel/api/cluster.py +++ b/controlpanel/api/cluster.py @@ -383,7 +383,7 @@ class App(EntityResource): AUTH0_DOMAIN = "AUTH0_DOMAIN" AUTH0_CONNECTIONS = "AUTH0_CONNECTIONS" AUTHENTICATION_REQUIRED = "AUTHENTICATION_REQUIRED" - AUTH0_PASSWORDLESS = "AUTH0_PASSWORDLESS" + AUTH0_PASSWORDLESS = "AUTH0_PASSWORDLESS" # gitleaks:allow APP_ROLE_ARN = "APP_ROLE_ARN" def __init__(self, app, github_api_token=None, auth0_instance=None): diff --git a/tests/api/test_auth0.py b/tests/api/test_auth0.py index 9f0aa70ef..602615a3b 100644 --- a/tests/api/test_auth0.py +++ b/tests/api/test_auth0.py @@ -545,7 +545,7 @@ def _clean_string(content): input_values={ "name": "test_nomis_connection", "client_id": "test_nomis_connection_id", - "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", + "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", # gitleaks:allow }, ) fixture_connection_create.assert_called_once_with(ANY) @@ -576,7 +576,7 @@ def test_create_custom_connection_with_allowed_error(ExtendedAuth0): input_values={ "name": "test_nomis_connection", "client_id": "test_nomis_connection_id", - "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", + "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", # gitleaks:allow }, ) connection_create.assert_called_once_with(ANY) @@ -591,7 +591,7 @@ def test_create_custom_connection_with_notallowed_error(ExtendedAuth0): input_values={ "name": "test_nomis_connection", "client_id": "test_nomis_connection_id", - "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", + "client_secret": "WNXFkM3FCTXJhUWs0Q1NwcKFu", # gitleaks:allow }, ) connection_create.assert_called_once_with(ANY) diff --git a/tests/api/test_authentication.py b/tests/api/test_authentication.py index d31e5d4d1..a3513c1b5 100644 --- a/tests/api/test_authentication.py +++ b/tests/api/test_authentication.py @@ -28,7 +28,7 @@ tkupJd4VQMbmPBVw5P1tYNtNSWu0edQSjC2JgYXI3So1NyAR+okkWtKdm777Aj78 P0tb3rTcNtcdF65w7QJBAIlfLWXrnjuJP4xdsJpubct+VoPZpEkojXp16zdEPSni Tk1/Hf+kxTTBR5xfmgtLCPmOU8d+qodjxI6JmZtfvVU= ------END RSA PRIVATE KEY-----""" +-----END RSA PRIVATE KEY-----""" # gitleaks:allow TEST_PUBLIC_KEY = """-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCo/FYLtMEuzwVf5n0ml+znmXF3