From fc6fd305126f97a82d524ee10fbee2dd0dc76eca Mon Sep 17 00:00:00 2001 From: Kyungwon Chun Date: Sat, 22 Aug 2026 02:45:10 +0900 Subject: [PATCH] ci: add CodeQL analysis workflow Run CodeQL analysis for Python on pull requests, main branch pushes, and a weekly schedule. Upload security findings with scoped workflow permissions. --- .github/workflows/codeql.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..8aa22f6 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,35 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "19 3 * * 1" + +permissions: + contents: read + +jobs: + analyze: + name: Analyze Python + runs-on: ubuntu-latest + permissions: + security-events: write + packages: read + + steps: + - name: Check out repository + uses: actions/checkout@v6 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: python + build-mode: none + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:python"