diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..8078a0a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + pull_request: + paths: + - '.github/workflows/*.yml' + - '**.py' + push: + branches: + - main + +permissions: {} + +jobs: + analysis: + name: Analysis + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: + - actions + - python + permissions: + contents: read + security-events: write + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + persist-credentials: false + - uses: github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 + with: + languages: ${{ matrix.language }} + build-mode: none + - uses: github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 + with: + category: /language:${{ matrix.language }}