🚀 Release: beta → master #39
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: "CodeQL Security Scan" | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| schedule: | |
| - cron: "0 3 * * 1" | |
| concurrency: | |
| group: codeql-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (CodeQL) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ["javascript"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| # ✅ Match production runtime | |
| - name: Setup Node.js (match production) | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: '**/package-lock.json' | |
| # ✅ Install ALL workspace deps | |
| - name: Install dependencies | |
| run: npm ci | |
| # ✅ Build shared packages first (important for TS resolution) | |
| - name: Build shared packages | |
| run: npm run build -w packages/types || true | |
| # ✅ Build API (critical for CodeQL flow analysis) | |
| - name: Build API | |
| run: npm run build -w apps/api || true | |
| # (optional but useful) | |
| - name: Build Web | |
| run: npm run build -w apps/web || true | |
| # ✅ Initialize CodeQL AFTER dependencies | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| queries: security-and-quality | |
| # ✅ Analyze | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 |