This is an automated email from the ASF dual-hosted git repository.

deacon-mp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/caldera.git


The following commit(s) were added to refs/heads/master by this push:
     new 366be1fa build(deps): bump six runtime pins and require Python 3.11+ 
(drops Python 3.10) (#3432)
366be1fa is described below

commit 366be1fafcb9915e8ae3cec432ab286c974b8f6f
Author: deacon-mp <[email protected]>
AuthorDate: Wed Nov 18 13:02:01 2026 -0500

    build(deps): bump six runtime pins and require Python 3.11+ (drops Python 
3.10) (#3432)
    
    - Bump aiohttp 3.14.4, pyasn1 0.6.5, asyncssh 2.24.1, setuptools 84.2.1,
      dnspython 2.9.2 and packaging 26.3 (includes #3419 and #3423; fixes 
#3418).
    - Require Python 3.11 or later: tox envlist, CI matrix, Sonar Python
      versions, README and the startup requirement in conf/default.yml.
    - requirements-dev.txt: pin pytest-asyncio 0.26.0 to match tox.ini and drop
      the unused safety package.
    - tox: document the single pytest advisory ignored by the pip-audit env 
until
      the test suite moves to pytest-asyncio 1.x, and keep pytest temporary 
files
      in each env's own directory.
    - CI: pin sonarqube-scan-action to the ASF-approved v8.5.0, report a failed
      Sonar scan as a warning until the ASF SonarCloud project is set up, and 
add
      "Code Quality" and "Security Checks" jobs that report under the names the
      branch protection requires.
    
    Co-authored-by: Cristian <[email protected]>
    Co-authored-by: katsugtgz <[email protected]>
---
 .github/workflows/quality.yml       | 27 ++++++++++++++++++++++++---
 .github/workflows/security.yml      | 19 +++++++++++++++++++
 .github/workflows/sonar-fork-pr.yml |  2 +-
 README.md                           |  2 +-
 conf/default.yml                    |  2 +-
 requirements-dev.txt                |  3 ++-
 requirements.txt                    | 12 ++++++------
 sonar-project.properties            |  2 +-
 tox.ini                             | 18 +++++++++++++-----
 9 files changed, 68 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml
index d88c31a0..0cb359dc 100644
--- a/.github/workflows/quality.yml
+++ b/.github/workflows/quality.yml
@@ -21,8 +21,6 @@ jobs:
       fail-fast: false
       matrix:
         include:
-          - python-version: 3.10.9
-            toxenv: py310,style,coverage-ci
           - python-version: 3.11
             toxenv: py311,style,coverage-ci
           - python-version: 3.12
@@ -63,7 +61,11 @@ jobs:
         # empty and the scan can only fail; skip it there. The merged result 
is still
         # scanned by the push-event run on master.
         if: ${{ github.event_name == 'push' || (github.event_name == 
'pull_request' && github.event.pull_request.head.repo.fork == false && 
github.actor != 'dependabot[bot]') }}
-        uses: 
SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e  # 
v8.2.0
+        # SonarCloud currently rejects the configured token (HTTP 403). Until 
the
+        # project is set up in the ASF SonarCloud organization, report a failed
+        # scan as a warning instead of failing the tests that already passed.
+        continue-on-error: true
+        uses: 
SonarSource/sonarqube-scan-action@59202af334b4ba7b5db01b701b8e79f8b3bef0f4  # 
v8.5.0
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -116,3 +118,22 @@ jobs:
           path: sonar-fork-pr-artifact/
           retention-days: 3
           if-no-files-found: warn
+
+  # Branch protection on master requires a check named "Code Quality" (see
+  # .asf.yaml), but the matrix jobs above report as "build (<python>, 
<toxenv>)".
+  # This job reports their combined result under the required name. It runs 
even
+  # when a build job fails or is cancelled, so the check fails instead of being
+  # skipped (a skipped required check counts as passing).
+  code-quality:
+    name: Code Quality
+    needs: build
+    if: ${{ always() }}
+    runs-on: ubuntu-latest
+    permissions: {}
+    steps:
+      - name: Check that every build job passed
+        env:
+          BUILD_RESULT: ${{ needs.build.result }}
+        run: |
+          echo "build jobs: $BUILD_RESULT"
+          test "$BUILD_RESULT" = "success"
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index 6141102e..3d9fc6c2 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -36,3 +36,22 @@ jobs:
         env:
           TOXENV: ${{ matrix.toxenv }}
         run: tox
+
+  # Branch protection on master requires a check named "Security Checks" (see
+  # .asf.yaml), but the matrix jobs above report as "build (<python>, 
<toxenv>)".
+  # This job reports their combined result under the required name. It runs 
even
+  # when a build job fails or is cancelled, so the check fails instead of being
+  # skipped (a skipped required check counts as passing).
+  security-checks:
+    name: Security Checks
+    needs: build
+    if: ${{ always() }}
+    runs-on: ubuntu-latest
+    permissions: {}
+    steps:
+      - name: Check that every build job passed
+        env:
+          BUILD_RESULT: ${{ needs.build.result }}
+        run: |
+          echo "build jobs: $BUILD_RESULT"
+          test "$BUILD_RESULT" = "success"
diff --git a/.github/workflows/sonar-fork-pr.yml 
b/.github/workflows/sonar-fork-pr.yml
index 30ad9368..52b1ca42 100644
--- a/.github/workflows/sonar-fork-pr.yml
+++ b/.github/workflows/sonar-fork-pr.yml
@@ -138,7 +138,7 @@ jobs:
           fi
 
       - name: SonarQube Scan (fork PR, trusted base)
-        uses: 
SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e  # 
v8.2.0
+        uses: 
SonarSource/sonarqube-scan-action@59202af334b4ba7b5db01b701b8e79f8b3bef0f4  # 
v8.5.0
         env:
           SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/README.md b/README.md
index 6a91f92e..0658dec2 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ These plugins are ready to use but are not included by 
default and are not maint
 These requirements are for the computer running the core framework:
 
 * Any Linux or MacOS
-  * Python 3.10+ (with Pip3)
+  * Python 3.11+ (with Pip3)
 * Recommended hardware to run on is 8GB+ RAM and 2+ CPUs
 * Recommended: [GoLang 1.24+](https://go.dev/doc/install) to dynamically 
compile GoLang-based agents.
 * NodeJS (v16+ recommended for v5 VueJS UI)
diff --git a/conf/default.yml b/conf/default.yml
index ef0075d9..654c7118 100644
--- a/conf/default.yml
+++ b/conf/default.yml
@@ -56,7 +56,7 @@ requirements:
     attr: version
     module: sys
     type: python_module
-    version: 3.9.0
+    version: 3.11.0
 users:
   blue:
     blue: admin
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 3fc9640e..4e65d8ea 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,7 +1,8 @@
 tox
 pytest
 pytest-aiohttp==1.0.3
+# 0.26.x while tests/conftest.py uses the event_loop fixture; keep in sync 
with tox.ini
+pytest-asyncio==0.26.0
 coverage
 pre-commit
-safety
 bandit
diff --git a/requirements.txt b/requirements.txt
index fb410279..a34dd6a3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 aiohttp-jinja2==1.5.1
-aiohttp==3.14.3
+aiohttp==3.14.4
 aiohttp_session==2.12.0
 aiohttp-security==0.4.0
 aiohttp-apispec==3.0.0b2
@@ -15,15 +15,15 @@ marshmallow==3.26.2
 dirhash==0.2.1
 marshmallow-enum==1.5.1
 ldap3==2.9.1
-pyasn1==0.6.4
+pyasn1==0.6.5
 reportlab==4.0.4  # debrief
 rich==13.7.0
 lxml==6.1.0  # debrief
 svglib==1.5.1  # debrief
 Markdown==3.8.1  # training
-dnspython==2.6.1
-asyncssh==2.23.1
+dnspython==2.9.2
+asyncssh==2.24.1
 aioftp==0.27.2
-packaging==23.2
+packaging==26.3
 croniter~=3.0.3
-setuptools==83.0.0
+setuptools==84.2.1
diff --git a/sonar-project.properties b/sonar-project.properties
index 2eed83a3..7e4987ea 100644
--- a/sonar-project.properties
+++ b/sonar-project.properties
@@ -13,7 +13,7 @@ sonar.sources=./app
 
 sonar.host.url=https://sonarcloud.io
 
-sonar.python.version=3.10,3.11,3.12
+sonar.python.version=3.11,3.12,3.13
 sonar.python.coverage.reportPaths=coverage.xml
 
 # Make an exception to Link's constructor, since it requires a refactor to pass
diff --git a/tox.ini b/tox.ini
index 14311551..293248b3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,7 +6,7 @@
 [tox]
 skipsdist = True
 envlist =
-    py{310,311,312,313}
+    py{311,312,313}
     style
     coverage
     safety
@@ -20,13 +20,14 @@ deps =
     virtualenv!=20.0.22
     pre-commit
     pytest
+    # keep pytest-asyncio in sync with requirements-dev.txt (see the safety 
env below)
     pytest-asyncio==0.26.0
     pytest-aiohttp
     coverage
 allowlist_externals = mkdir
 commands =
     mkdir -p plugins/magma/dist/assets
-    coverage run -p -m pytest --tb=short --asyncio-mode=auto tests -vv
+    coverage run -p -m pytest --tb=short --asyncio-mode=auto 
--basetemp={envtmpdir}/pytest tests -vv
 
 [testenv:style]
 deps = pre-commit
@@ -63,14 +64,21 @@ commands =
 # Dependabot, GitGuardian, and SonarCloud already cover supply chain.
 #
 # Legacy pyup ignores (39642 reportlab, 39659 aiohttp) are obsolete
-# now that aiohttp>=3.13 and reportlab>=4.0 are pinned. Add
-# `--ignore-vuln GHSA-...` here if a real exemption is needed later.
+# now that aiohttp>=3.13 and reportlab>=4.0 are pinned. Any exemption is
+# listed next to its command below, with a reason and a review date.
 deps =
     pip-audit
 skip_install = true
 commands =
     pip-audit -r requirements.txt
-    pip-audit -r requirements-dev.txt
+    # GHSA-6w46-j5rx-g56g (pytest tmpdir handling, fixed in pytest 9.0.3):
+    # pytest is a test-only tool and is not part of the release. The suite
+    # still uses the event_loop fixture, so pytest-asyncio stays at 0.26.x,
+    # which requires pytest<9 (pinned in [testenv] above and in
+    # requirements-dev.txt). The test envs keep pytest's temp files under
+    # {envtmpdir} (--basetemp), not the shared /tmp directory. Remove this
+    # ignore once the tests move to pytest-asyncio 1.x; review by 2027-03-31.
+    pip-audit -r requirements-dev.txt --ignore-vuln GHSA-6w46-j5rx-g56g
 
 [testenv:bandit]
 deps =

Reply via email to