Harden auth, sync, and Supabase security #8
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: Lighthouse CI | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: lighthouse-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| lighthouse: | |
| name: Lighthouse audit | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Verify current file audit | |
| run: | | |
| npm run audit:generate | |
| npm run audit:verify | |
| git diff --exit-code -- audit/current | |
| - name: Run Lighthouse CI | |
| run: npm run lighthouse | |
| - name: Upload Lighthouse reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: lighthouse-reports | |
| path: | | |
| artifacts/lighthouse | |
| .lighthouseci | |
| if-no-files-found: warn | |
| retention-days: 14 |