Skip to content

chore(deps): bump the npm-deps group across 1 directory with 6 updates #20

chore(deps): bump the npm-deps group across 1 directory with 6 updates

chore(deps): bump the npm-deps group across 1 directory with 6 updates #20

Workflow file for this run

name: Secret Scan
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
scan:
name: Secret Pattern Detection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Scan for secret patterns
run: |
FOUND=0
for pattern in 'sk-[a-zA-Z0-9]{20,}' 'ghp_[a-zA-Z0-9]{36}' 'AKIA[A-Z0-9]{16}' 'sk-ant-[a-zA-Z0-9]{20,}'; do
if git grep -lP "$pattern" -- ':!.github' ':!node_modules' ':!.venv' 2>/dev/null; then
echo "::error::Potential secret pattern found: $pattern"
FOUND=1
fi
done
if [ "$FOUND" -eq 1 ]; then exit 1; fi
echo "No secret patterns detected"