diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml new file mode 100644 index 0000000..968482c --- /dev/null +++ b/.github/workflows/codeql_analysis.yml @@ -0,0 +1,33 @@ +name: CodeQL Analysis + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + analyze: + name: CodeQL Analysis + runs-on: ubuntu-latest + permissions: + security-events: write + actions: read + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: python + queries: security-and-quality + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:python" \ No newline at end of file