diff --git a/.github/workflows/codeql-actions.yml b/.github/workflows/codeql-actions.yml new file mode 100644 index 000000000..2d3bf95bc --- /dev/null +++ b/.github/workflows/codeql-actions.yml @@ -0,0 +1,42 @@ +name: "CodeQL GitHub Actions" + +on: + push: + branches: [ "master"] + tags: ['*'] + pull_request: + paths: + - .github/workflows/*.yml + schedule: + - cron: '17 10 * * 2' + +jobs: + analyze-python: + name: Analyze GitHub Actions + runs-on: "ubuntu-latest" + timeout-minutes: 360 + permissions: + # required for all workflows + security-events: write + # required to fetch internal or private CodeQL packs + packages: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: actions + build-mode: none + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs + queries: security-extended + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:actions" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql-python.yml similarity index 98% rename from .github/workflows/codeql.yml rename to .github/workflows/codeql-python.yml index d0a7c9716..a5bc8d2c9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql-python.yml @@ -1,4 +1,4 @@ -name: "CodeQL" +name: "CodeQL Python" on: push: @@ -25,7 +25,6 @@ jobs: permissions: # required for all workflows security-events: write - # required to fetch internal or private CodeQL packs packages: read steps: diff --git a/bindings/python/.evergreen/integ-test.sh b/bindings/python/.evergreen/integ-test.sh index 2efdc9a07..2dfa808b7 100755 --- a/bindings/python/.evergreen/integ-test.sh +++ b/bindings/python/.evergreen/integ-test.sh @@ -28,6 +28,7 @@ export PYMONGOCRYPT_LIB createvirtualenv $PYTHON .venv pip install -e . +pip install uv pushd $PYMONGO_DIR pip install -e ".[test,encryption]" source ${DRIVERS_TOOLS}/.evergreen/csfle/secrets-export.sh