diff options
| author | Leitwolf11 | 2026-11-16 14:52:55 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-11-16 14:52:55 +0300 |
| commit | 430cd475da04bf3dba74c96b273c4f12570d6577 (patch) | |
| tree | 04422ae10e4cc73915b53278805b608c30935531 /.github/workflows | |
| parent | 064a9ebb87c5afd55b0cd00b37ebaf849a9306b4 (diff) | |
| download | catch3-430cd475da04bf3dba74c96b273c4f12570d6577.tar.gz | |
Parse the JUnit report with defusedxml
Bandit flags every parser of the standard xml package, fromstring too,
as they expand entities. defusedxml refuses entity declarations and
external references, so the hand-written DOCTYPE check goes.
- Ubuntu and Fedora jobs that build the extra tests install the
distribution package python3-defusedxml.
- The macOS job installs requirements-tests.txt, pinned by hash, into the
Python of actions/setup-python, and CMake uses that Python.
- The contributing guide names the requirement.
Claude-Session: https://claude.ai/code/session_01Ji7xZMYjc4zankoc7hGBE1
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/linux-builds.yml | 8 | ||||
| -rw-r--r-- | .github/workflows/mac-builds.yml | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index 02ee8d67..dd36df79 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -32,10 +32,10 @@ jobs: with: persist-credentials: false - - name: Install Clang, LLVM's coverage tools, CMake and Ninja + - name: Install Clang, LLVM's coverage tools, CMake, Ninja and defusedxml run: | sudo apt-get update - sudo apt-get install -y clang llvm cmake ninja-build python3 + sudo apt-get install -y clang llvm cmake ninja-build python3 python3-defusedxml - name: Configure run: | @@ -113,8 +113,8 @@ jobs: steps: # Git comes first: without it the checkout falls back to an archive of # the repository, which is not a checkout the tests can ask questions of. - - name: Install Git, Clang, LLVM's coverage tools, CMake and Ninja - run: dnf install -y git clang llvm gcc-c++ cmake ninja-build python3 + - name: Install Git, Clang, LLVM's coverage tools, CMake, Ninja and defusedxml + run: dnf install -y git clang llvm gcc-c++ cmake ninja-build python3 python3-defusedxml - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: diff --git a/.github/workflows/mac-builds.yml b/.github/workflows/mac-builds.yml index 8e10fadc..4275cbc7 100644 --- a/.github/workflows/mac-builds.yml +++ b/.github/workflows/mac-builds.yml @@ -28,6 +28,13 @@ jobs: with: persist-credentials: false + - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 + with: + python-version: '3.14' + + - name: Install what the extra tests import + run: python -m pip install --require-hashes --requirement requirements-tests.txt + - name: Configure with the sanitizers env: CXXFLAGS: -fsanitize=address,undefined @@ -37,7 +44,8 @@ jobs: -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_CXX_STANDARD=17 \ -DCATCH3_BUILD_EXAMPLES=ON \ - -DCATCH3_BUILD_EXTRA_TESTS=ON + -DCATCH3_BUILD_EXTRA_TESTS=ON \ + -DPython3_EXECUTABLE="$(command -v python)" - name: Build run: cmake --build build |