diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml new file mode 100644 index 0000000000..dcdc105f53 --- /dev/null +++ b/.github/workflows/codeql_analysis.yml @@ -0,0 +1,36 @@ +name: "CodeQL check" + +on: + push: + branches: [develop, release/*] + pull_request: + branches: [develop] + schedule: + - cron: '34 02 * * 2' + +jobs: + code-ql-analyze: + name: Analyze with CodeQL + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ["javascript"] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1