fix: use type predicate in filter to narrow string | undefined to string #88
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: Security Scanner | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| scanner: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build integration image | |
| run: docker compose -f test/integration/docker-compose.yml build | |
| - name: Run security scanner | |
| run: > | |
| docker compose -f test/integration/docker-compose.yml run --rm | |
| integration npx vitest run --config vitest.integration.config.ts | |
| test/integration/security-scanner.test.ts |