From 8e52d1f8aa4e6cd7c400d31668931bfcc3f56964 Mon Sep 17 00:00:00 2001 From: NivedhaSV Date: Mon, 25 Nov 2024 12:48:51 +0530 Subject: [PATCH] ci(secret): added files ts/tsx/js --- .github/workflows/detect-secrets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/detect-secrets.yml b/.github/workflows/detect-secrets.yml index 63f67c6a..e94335d5 100644 --- a/.github/workflows/detect-secrets.yml +++ b/.github/workflows/detect-secrets.yml @@ -30,4 +30,4 @@ jobs: - name: Scan for Secrets run: | - find . -name '*.tsx' | xargs git secrets --scan || (echo "Secrets detected in your push!"; exit 1) + git diff --cached --name-only | grep -E '\.(tsx|ts|js)$' | xargs git secrets --scan || (echo "Secrets detected in your push!"; exit 1)