From d5130b404eb15360c8e4422a32fcf891a33ebd6d Mon Sep 17 00:00:00 2001 From: James Phillip Sanders Date: Mon, 23 Nov 2026 15:45:36 +0000 Subject: [PATCH] Pin ruru to its 1.0.0 release The workflows and make ruru used ruru-review's main branch; they now use the signed 1.0.0 tag, so a change there cannot alter this repository's checks. The artifact actions match ruru's templates. --- .github/workflows/ruru-post.yml | 4 ++-- .github/workflows/ruru.yml | 4 ++-- Makefile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ruru-post.yml b/.github/workflows/ruru-post.yml index 85a55d3..247e57b 100644 --- a/.github/workflows/ruru-post.yml +++ b/.github/workflows/ruru-post.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Download the report (data only)" - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v8 with: name: ruru-report path: ruru @@ -34,7 +34,7 @@ jobs: echo "number=$n" >> "$GITHUB_OUTPUT" - name: "ruru post" - uses: jpsanders/ruru-review@main + uses: jpsanders/ruru-review@1.0.0 with: run: post report: ruru/ruru-report.json diff --git a/.github/workflows/ruru.yml b/.github/workflows/ruru.yml index 6faf838..e5e0e8d 100644 --- a/.github/workflows/ruru.yml +++ b/.github/workflows/ruru.yml @@ -28,14 +28,14 @@ jobs: run: python -m pip install -e ".[dev]" - name: "ruru" - uses: jpsanders/ruru-review@main + uses: jpsanders/ruru-review@1.0.0 with: mode: gate report: ruru/ruru-report.json - name: "Upload the report for the posting workflow" if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: ruru-report path: ruru/ diff --git a/Makefile b/Makefile index d077926..f41a15c 100644 --- a/Makefile +++ b/Makefile @@ -118,7 +118,7 @@ checks: isort-check black-check ec docstyle lint mypy bandit man-check pytest ru # ruru reviews the change on this branch against main: a tamper audit of the tests, fail first for new tests, and # mutants on the changed lines (https://github.com/jpsanders/ruru-review). On main with nothing changed it passes at # once. `make checks RURU=:` skips it; RURU_BASE and RURU_MODE override the defaults. -RURU ?= uvx --python 3.14 --from git+https://github.com/jpsanders/ruru-review@main ruru +RURU ?= uvx --python 3.14 --from git+https://github.com/jpsanders/ruru-review@1.0.0 ruru RURU_BASE ?= origin/main RURU_MODE ?= gate