diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..32c8d1f255 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: "CodeQL" +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: '30 8 * * *' +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ${{ 'ubuntu-latest' }} + permissions: + security-events: write + packages: read + + strategy: + matrix: + include: + - language: python + build-mode: none + - language: java-kotlin + build-mode: none + steps: + - name: Checkout repository + uses: actions/checkout@6ccd57f4c5d15bdc2fef309bd9fb6cc9db2ef1c6 + - name: Initialize CodeQL + uses: github/codeql-action/init@4b1d7da102ff94aca014c0245062b1a463356d72 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@4b1d7da102ff94aca014c0245062b1a463356d72 + with: + category: "/language:${{matrix.language}}"