This repository has been archived by the owner on Sep 6, 2024. It is now read-only.
CodeQL #1014
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" | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- "src/**" | |
- ".github/codeql/**" | |
- ".github/workflows/codeql-analysis.yml" | |
pull_request: | |
paths: | |
- "src/**" | |
- ".github/codeql/**" | |
- ".github/workflows/codeql-analysis.yml" | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
CodeQL-Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- run: git checkout HEAD^2 | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v1 | |
with: | |
languages: javascript | |
config-file: ./.github/codeql/codeql-config.yml | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v1 |