chore: deploy Descent Protocol infrastructure + sync context files #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v4 | |
| 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" |