diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5aa5d748..bfd1ae7a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -56,6 +56,23 @@ jobs: exit 1 fi + - name: Assert no (upload|download)-artifact past v3 + shell: bash + run: | + # Self-test: verify the regex catches v4+ (anchored to YAML `uses:` lines). + tmp=$(mktemp) + printf ' uses: actions/upload-artifact@v5\n' > "$tmp" + grep -qP '^\s+uses:\s+actions/(upload|download)-artifact@v[4-9]' "$tmp" \ + || { echo "FAIL: guard self-test — regex missed upload-artifact@v5"; rm "$tmp"; exit 1; } + rm "$tmp" + # Guard: Gitea Actions (act_runner) does not implement the v4 artifact protocol. + # Both upload-artifact and download-artifact share the same incompatibility. + # Pin to @v3. See ADR-014 / #557. + if grep -RPn '^\s+uses:\s+actions/(upload|download)-artifact@v[4-9]' .gitea/workflows/; then + echo "::error::actions/(upload|download)-artifact@v4+ is unsupported on Gitea Actions (act_runner). Pin to @v3. See ADR-014 / #557." + exit 1 + fi + - name: Run unit and component tests with coverage shell: bash run: |