diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000000..9855f5f4cab --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: "CodeQL" + +# yamllint disable-line rule:truthy +on: + push: + branches: + - dev + - rc + - master + pull_request: + branches: + - dev + schedule: + - cron: "30 18 * * 4" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Check out code from GitHub + uses: actions/checkout@v4.1.1 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2.22.3 + with: + languages: python + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2.22.3 + with: + category: "/language:python"