diff --git a/.github/workflows/codeql-2.yml b/.github/workflows/codeql-2.yml new file mode 100644 index 00000000000..3bb72d0ffae --- /dev/null +++ b/.github/workflows/codeql-2.yml @@ -0,0 +1,37 @@ +name: 'CodeQL' + +on: + pull_request: + types: [opened, synchronize] +jobs: + CodeQL-Build: + name: CodeQL Build + 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@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + # Minimal depth 2 so we can checkout the commit before possible merge commit. + fetch-depth: 2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f + with: + languages: ${{ matrix.language }} + config-file: ./.github/codeql/codeql-config.yml + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f + with: + category: '/language:${{matrix.language}}'