From 1ffd677bf2be152f8e461c3cef52c87f38c6ed63 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Mon, 8 Dec 2025 18:58:41 +0800 Subject: [PATCH] update test --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c5d9630..9db56b8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -133,7 +133,11 @@ jobs: - name: Check for secrets run: | echo "Checking for hardcoded secrets..." - if grep -r "password\|secret\|api_key" --include="*.sh" . | grep -v "# \|test"; then + matches=$(grep -r "password\|secret\|api_key" --include="*.sh" . \ + | grep -v "# \|test" \ + | grep -v -E "lib/core/sudo\.sh|lib/core/app_protection\.sh|lib/clean/user\.sh|lib/clean/brew\.sh" || true) + if [[ -n "$matches" ]]; then + echo "$matches" echo "✗ Potential secrets found" exit 1 fi