fix(#949): defend mock interview role field against prompt injection via enum allowlist and escaping #499
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| cache-dependency-path: package-lock.json | |
| - name: Install Dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Run Linter | |
| run: npm run lint | |
| - name: Run Tests with Coverage | |
| run: npx vitest run --coverage | |
| env: | |
| NODE_ENV: test | |
| SUPABASE_JWT_SECRET: dummy-secret-for-ci | |
| FRONTEND_URL: http://localhost:5173 |