seal: stationary state 20260425-093504 #60
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: Security Checks | |
| on: | |
| push: | |
| branches: [ main ] | |
| schedule: | |
| - cron: '0 0 * * *' | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| static-analysis: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: javascript | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| crypto-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Ban Insecure RNG (Math.random) | |
| run: | | |
| if grep -r "Math.random" . --include="*.js" --include="*.cjs" --include="*.mjs"; then | |
| echo "❌ Insecure Math.random() detected — Riverbraid must remain deterministic and stationary." | |
| exit 1 | |
| fi | |
| - name: Ban Broken Hashes (MD5 / SHA1) | |
| run: | | |
| if grep -riE "md5|sha1" . --include="*.js" --include="*.cjs" --include="*.mjs"; then | |
| echo "❌ Broken hash (MD5 or SHA1) detected — only cryptographically secure primitives allowed." | |
| exit 1 | |
| fi |