Skip to content

Commit 45828e3

Browse files
committed
fix(ci): fix broken regex quoting in security-policy and update trufflehog SHA
1 parent aca7808 commit 45828e3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
run: |
1111
find . -type f -perm /111 -name "*.sh" | head -10 || true
1212
- name: Check for secrets
13-
uses: trufflesecurity/trufflehog@7ee2e0fdffec27d19ccbb8fb3dcf8a83b9d7f9e8 # main
13+
uses: trufflesecurity/trufflehog@bff3d2670b362bbb4a0bcdeffea146cbc2ad3abd # main
1414
with:
1515
path: ./
1616
base: ${{ github.event.pull_request.base.sha || github.event.before }}

.github/workflows/security-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fi
2626
2727
# Block hardcoded secrets patterns
28-
SECRETS=$(grep -rEi '(api_key|apikey|secret_key|password)\s*[=:]\s*["'][A-Za-z0-9+/=]{20,}' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.env" . 2>/dev/null | grep -v 'example\|sample\|test\|mock\|placeholder' | head -3 || true)
28+
SECRETS=$(grep -rEi '(api_key|apikey|secret_key|password)\s*[=:]\s*["'"'"'][A-Za-z0-9+/=]{20,}' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.env" . 2>/dev/null | grep -v 'example\|sample\|test\|mock\|placeholder' | head -3 || true)
2929
if [ -n "$SECRETS" ]; then
3030
echo "❌ Potential hardcoded secrets detected!"
3131
FAILED=true

0 commit comments

Comments
 (0)