Workflow file for this run
This file contains 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 Analysis | ||
on: [push, pull_request] | ||
branches: | ||
- Staging | ||
- Master | ||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
language: [javascript, typescript] - | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up CodeQL | ||
uses: github/codeql-action/setup@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
- name: Build and analyze | ||
run: | | ||
npm install | ||
npm run build | ||
codeql database create -l ${{ matrix.language }} -s . -o mycode.db | ||
codeql analyze -d mycode.db ${{ matrix.language }} | ||
- name: Upload CodeQL Analysis | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: mycode.db/results.sarif |