diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-11 12:22:47 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-11 12:22:47 +0300 |
| commit | de13c902bb0251ee3ee99dae215685111a913536 (patch) | |
| tree | f8f49b7dfc5e77a8cf620c3b9087f867b5c1e1af /docs/_static/css/code-snippets.css | |
| parent | 4c3776388b6656234aca57fd6993e677e2d006c3 (diff) | |
| download | vyos-documentation-de13c902bb0251ee3ee99dae215685111a913536.tar.gz vyos-documentation-de13c902bb0251ee3ee99dae215685111a913536.zip | |
ci(ai-validation): address 3 follow-up CR/Copilot findings on validate-checkout step
After the first fix bundle landed on the three wave-5 PRs, three more
findings surfaced:
1. (CR on #1991, line 312) `rm -f` silently no-ops on directories. A
fork could commit `changed-md.txt/`, `diff-md.patch/`, or
`pass1-findings.json/` AS DIRECTORIES (not files), and the wipe
step would skip them — the subsequent artifact-download writes
into the real-file path would then collide with the fork-placed
directory, producing unpredictable behaviour.
Fix: use `rm -rf` for ALL reserved paths uniformly. The
distinction was cosmetic at best; making it uniform closes the
gap.
2. (Copilot on #1991, line 311) `.venv/` is also fork-attackable.
`astral-sh/setup-uv` with `activate-environment: true` creates
`${{ github.workspace }}/.venv` and prepends its `bin/` to PATH.
If a fork pre-populates `.venv/bin/`, those binaries land in
PATH for subsequent steps (Pass 1 runs `vyos-doc-review`, Pass 2
runs `claude-code-action` whose internals may shell out).
Fix: add `.venv` to the wipe list.
3. (Copilot on #1992, line 298) The inline comment block contains
a literal `PR's` — a stray shell heredoc escape sequence
that survived the commit verbatim. Confusing in YAML.
Fix: replace with plain `PRs`.
Mirrored byte-identically across rolling/circinus/sagitta + canonical
follow-up after this wave merges.
Diffstat (limited to 'docs/_static/css/code-snippets.css')
0 files changed, 0 insertions, 0 deletions
