M26: Upgrade actions/checkout and astral-sh/setup-uv Pins Across All GitHub Actions Workflows¶
- Task ID:
M26 - Priority:
P3(Master Rank#15, Track B — Simple Fixes, Docs & CI Hygiene) - Status:
Done - Dependencies:
M6,M8 - Target Repository:
/Users/ivan/Project/3t.tools.intellij/verityredteam-free(verity-redteam-core) - GitHub Project #5: Verity RedTeam Free Task Board
1. Context & Problem Statement¶
All four GitHub Actions workflows pin third-party actions to versions that still run on the Node 20 runtime, which GitHub has deprecated and now annotates on every run:
.github/workflows/ci.yml—actions/checkout@v4,astral-sh/setup-uv@v4.github/workflows/full-tests.yml—actions/checkout@v4,astral-sh/setup-uv@v4.github/workflows/workflow.yaml—actions/checkout@v4,astral-sh/setup-uv@v4.github/workflows/e2e-containers.yml—actions/checkout@v4,astral-sh/setup-uv@v5
Result: every CI run emits Node.js 20 actions are deprecated warnings, the setup-uv pin is inconsistent across workflows (v4 vs v5), and workflow.yaml gates the PyPI publish so its warnings pollute release runs. A hard runtime cut-over to Node 24 will break the v4 pins outright.
2. Requirements & Target Files¶
- actions/checkout: bump
v4→v5(Node 24 runtime) in all four workflows. - astral-sh/setup-uv: bump to
v6(Node 24 runtime) in all four workflows — including.github/workflows/e2e-containers.yml, which is currentlyv5— so a single pin is used everywhere. - No legacy pins: zero occurrences of
actions/checkout@v4and zero occurrences ofastral-sh/setup-uv@v4/astral-sh/setup-uv@v5in.github/workflows/**. - No floating refs: no
@main/@masteraction references introduced by the migration. - No behavioural change: job names, triggers, matrices, env blocks, permissions, and step ordering stay identical; only
uses:version tags change.
Target files:
- .github/workflows/ci.yml
- .github/workflows/full-tests.yml
- .github/workflows/workflow.yaml
- .github/workflows/e2e-containers.yml
- tests/unit/test_workflow_hygiene.py (new)
3. Automated Tests to Verify (tests/unit/test_workflow_hygiene.py)¶
- Parametrized over all four workflow files: every
uses: actions/checkout@…equalsactions/checkout@v5. - Parametrized over all four workflow files: every
uses: astral-sh/setup-uv@…equalsastral-sh/setup-uv@v6. setup-uv@v4andcheckout@v4appear zero times across.github/workflows/**(directory-wide grep-style scan).- No action reference uses a floating
@main/@masterbranch. - Pin parity: the set of
actions/checkout@…tags across the four workflows has size1, and likewise forastral-sh/setup-uv@…(prevents future drift). - Workflow YAML still parses and every expected job name (
test-and-build,full-tests,pypi-publish,e2e-containers) is present.
4. Acceptance Scenario in Live CI & Clean Container¶
- Push the change to a branch / open a PR that touches
.github/workflows/**. - CI job assertions: the
CIworkflow completes green on Python3.12and3.13with zeroNode.js 20 actions are deprecatedannotations on the run summary. - Full suite assertions:
Full Test Suiteruns green on3.12/3.13;Verify Zero-Docker Demo Targets CLI,Verify SQL AST Guard CLIandVerify MCP Server CLIsteps still pass unchanged. - Release path:
Publish to PyPIworkflow reaches thefull-testsjob and buildsuv buildartefacts without deprecation warnings. - Container E2E:
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.shpasses (e2e-containers.ymlbumped to the same pins). - Confirm no remaining
@v4action pins in the workflow directory after the change.
5. Verification Commands¶
cd /Users/ivan/Project/3t.tools.intellij/verityredteam-free
uv run ruff check src tests
uv run pytest tests/unit/test_workflow_hygiene.py -v
uv run pytest tests/
rg -n "uses: (actions/checkout|astral-sh/setup-uv)@" .github/workflows
INSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.sh
6. Acceptance Criteria¶
- [ ]
actions/checkout@v5andastral-sh/setup-uv@v6are used in all four workflows (ci.yml,full-tests.yml,workflow.yaml,e2e-containers.yml). - [ ] Zero
actions/checkout@v4, zeroastral-sh/setup-uv@v4and zeroastral-sh/setup-uv@v5references remain under.github/workflows/. - [ ]
tests/unit/test_workflow_hygiene.pyasserts pin consistency and absence of legacy pins, and passes. - [ ] Live CI run shows no
Node.js 20deprecation annotations for either action. - [ ]
ruff check src tests, fullpytest tests/, andINSTALL_SOURCE=wheel ./tests/e2e_containers/run_e2e.shpass cleanly.