From e648611dc84d0ba4fd686221105123e0ce9d4e4e Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Mon, 21 Feb 2022 20:32:09 +0100 Subject: [PATCH] feat(ci): add CodeQL analysis --- .github/workflows/codeql_analysis.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/codeql_analysis.yml 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