2.300.0: sealed-orders emergency reflex + session-brain step 1 (buffe… #505
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: | |
| pull_request: | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: { node-version: '20' } | |
| - name: Scan tracked files for secrets | |
| run: | | |
| set -e | |
| rc=0 | |
| for f in $(git ls-files | grep -vE '\.(png|jpe?g|gif|svg|ico|woff2?|pdf|zip|gz)$|^public/(bundle|novnc)\.js$|^package-lock\.json$'); do | |
| node scripts/secret-scan.mjs "$f" --quiet || rc=1 | |
| done | |
| if [ "$rc" != "0" ]; then | |
| echo "::error::secret-scan found potential secrets — review the output above" | |
| exit 1 | |
| fi | |
| echo "secret-scan clean" |