From b2d1ec86e4ec3daf757ffba73a38557c4e718705 Mon Sep 17 00:00:00 2001 From: Naman Singh Date: Mon, 6 Jul 2026 12:37:30 +0530 Subject: [PATCH] fix: sync pyproject.toml dependencies with requirements.txt and add CodeQL SAST workflow - Add cryptography>=42.0.0, httpx>=0.28.1, openai>=1.0.0 to pyproject.toml to match backend/requirements.txt. Without these, pip install . silently omits vault encryption (cryptography), webhook delivery (httpx), and AI summary features (openai), causing runtime failures. - Add CodeQL security analysis workflow to catch vulnerabilities during CI. - Add .python-version for consistent local Python version management. --- .github/workflows/codeql.yml | 43 ++++++++++++++++++++++++++++++++++++ .python-version | 1 + pyproject.toml | 5 ++++- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml create mode 100644 .python-version diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..739aa639b --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: "CodeQL Security Analysis" + +on: + push: + branches: [main, dev] + pull_request: + branches: [main] + schedule: + - cron: "0 6 * * 1" + workflow_dispatch: + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + timeout-minutes: 360 + strategy: + fail-fast: false + matrix: + language: [javascript-typescript, python] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..2c0733315 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.11 diff --git a/pyproject.toml b/pyproject.toml index d09bf392b..d9f403e58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,10 @@ dependencies = [ "python-multipart>=0.0.9", "xhtml2pdf>=0.2.17", "aiosqlite>=0.20.0", - "python-whois>=0.9.4" + "python-whois>=0.9.4", + "cryptography>=42.0.0", + "httpx>=0.28.1", + "openai>=1.0.0" ] [project.scripts]