fix: finalize direct execution path #9
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: Riverbraid Verification Gate | |
| on: | |
| push: | |
| branches: [ main, v* ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js 20.11.0 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.11.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run verification | |
| run: npm run verify | |
| - name: Enforce LF line endings | |
| run: | | |
| ! find . -type f -not -path "./.git/*" -exec file {} \; | grep -i CRLF || exit 1 | |
| - name: Entropy Ban | |
| run: | | |
| ! grep -rE "Math.random|Date.now|process.hrtime|crypto.getRandomValues|randomUUID" --exclude-dir=.git --exclude-dir=node_modules . || exit 1 | |
| - name: Verify Signed Tag | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: | | |
| git tag -v v1.5.0 2>&1 | grep -q "gpg: Good signature" |