mirror of
https://github.com/tw93/Mole.git
synced 2026-02-08 12:39:19 +00:00
update test
This commit is contained in:
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@@ -133,7 +133,11 @@ jobs:
|
|||||||
- name: Check for secrets
|
- name: Check for secrets
|
||||||
run: |
|
run: |
|
||||||
echo "Checking for hardcoded secrets..."
|
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"
|
echo "✗ Potential secrets found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user