From 44da571b9fde16ae1d56d5e6578b44ca88919bc4 Mon Sep 17 00:00:00 2001 From: gil portnoy Date: Sun, 16 Mar 2025 22:15:16 +0200 Subject: [PATCH 1/2] fixes --- src/ci_tests/test_gitleaks.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/ci_tests/test_gitleaks.txt diff --git a/src/ci_tests/test_gitleaks.txt b/src/ci_tests/test_gitleaks.txt new file mode 100644 index 0000000..594e090 --- /dev/null +++ b/src/ci_tests/test_gitleaks.txt @@ -0,0 +1,2 @@ +f.write('AWS_SECRET_ACCESS_KEY = "AKIAIOSFODNN7EXAMPLE"\n') +f.write('ANOTHER_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"\n') From d90963155b33dc9217c1ca03983b59ba0d0baeb1 Mon Sep 17 00:00:00 2001 From: gil portnoy Date: Sun, 16 Mar 2025 22:30:59 +0200 Subject: [PATCH 2/2] this should pass --- .pre-commit-config.yaml | 3 ++- src/ci_tests/test_gitleaks.txt | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 src/ci_tests/test_gitleaks.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9c840e6..ab6dc38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -97,11 +97,12 @@ repos: types: [shell] files: \.sh$ + - repo: https://github.com/gitleaks/gitleaks rev: v8.24.0 hooks: - id: gitleaks - + name: gitleaks - repo: https://github.com/PyCQA/bandit rev: 1.8.3 hooks: diff --git a/src/ci_tests/test_gitleaks.txt b/src/ci_tests/test_gitleaks.txt deleted file mode 100644 index 594e090..0000000 --- a/src/ci_tests/test_gitleaks.txt +++ /dev/null @@ -1,2 +0,0 @@ -f.write('AWS_SECRET_ACCESS_KEY = "AKIAIOSFODNN7EXAMPLE"\n') -f.write('ANOTHER_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"\n')