From 4d917af4354ad356e8bbc4eaac39a2cc8251ae33 Mon Sep 17 00:00:00 2001 From: Noah Luna <15202580+ngrayluna@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:01:42 -0700 Subject: [PATCH 1/3] pre commit hook that checks for secrets --- .github/.pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/.pre-commit-config.yaml diff --git a/.github/.pre-commit-config.yaml b/.github/.pre-commit-config.yaml new file mode 100644 index 0000000000..cf44c273f0 --- /dev/null +++ b/.github/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +# .pre-commit-config.yaml +repos: +- repo: https://github.com/Yelp/detect-secrets + rev: v1.5.0 + hooks: + - id: detect-secrets-hook + args: ['--baseline', '.secrets.baseline'] + exclude: package.lock.json \ No newline at end of file From d3e4dc1c107a099e952b7f8e3f6acf626c05c4ec Mon Sep 17 00:00:00 2001 From: Noah Luna <15202580+ngrayluna@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:05:32 -0700 Subject: [PATCH 2/3] Added out of the box check --- .github/.pre-commit-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/.pre-commit-config.yaml b/.github/.pre-commit-config.yaml index cf44c273f0..2c2bb454f5 100644 --- a/.github/.pre-commit-config.yaml +++ b/.github/.pre-commit-config.yaml @@ -1,8 +1,14 @@ # .pre-commit-config.yaml repos: +# Out of the box pre-commit hook +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 # Use the ref you want to point at + hooks: + - id: detect-private-key +# Yelps version of key detection - repo: https://github.com/Yelp/detect-secrets rev: v1.5.0 hooks: - id: detect-secrets-hook args: ['--baseline', '.secrets.baseline'] - exclude: package.lock.json \ No newline at end of file + exclude: package.lock.json \ No newline at end of file From 9ce6620893aa66ef5cee581aabc45dff5dd93d81 Mon Sep 17 00:00:00 2001 From: Noah Luna <15202580+ngrayluna@users.noreply.github.com> Date: Tue, 26 Aug 2025 16:07:30 -0700 Subject: [PATCH 3/3] removed comment --- .github/.pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/.pre-commit-config.yaml b/.github/.pre-commit-config.yaml index 2c2bb454f5..f83480385e 100644 --- a/.github/.pre-commit-config.yaml +++ b/.github/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -# .pre-commit-config.yaml repos: # Out of the box pre-commit hook - repo: https://github.com/pre-commit/pre-commit-hooks