🚨 Flash: [CRITICAL] Fix IP spoofing vulnerability in x-forwarded-for headers #11
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: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ci-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| name: Lint, Typecheck & Test | |
| if: | | |
| !github.event.pull_request.draft && | |
| github.event.pull_request.user.login != 'dependabot[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: ESLint | |
| run: npm run lint | |
| - name: TypeScript Typecheck | |
| run: npm run typecheck | |
| - name: Unit Tests | |
| run: npm test |