diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-11 01:23:55 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-11 01:23:55 +0300 |
| commit | 4d105419f02715f9d53de6bba31f768896e80849 (patch) | |
| tree | 66e6f9f3f07a59c6bbad924388a8f8f96defd40d /docs/_include/coverage | |
| parent | 647db7d696b4c8285a9dd80be773aff7e9740840 (diff) | |
| download | vyos-documentation-4d105419f02715f9d53de6bba31f768896e80849.tar.gz vyos-documentation-4d105419f02715f9d53de6bba31f768896e80849.zip | |
ci(ai-validation): fix control-char guard — use grep -z, exclude NUL
Previous form `tr -d '\0\n\r' | grep -Pq [\x00-\x1F\x7F]` stripped
the very chars (LF, CR) it was meant to catch before the grep ran,
so a path containing newlines or carriage returns slipped through.
`grep -z` keeps NUL as the record delimiter (legitimate separator from
git diff -z) and the pattern excludes 0x00 while catching every other
control byte 0x01-0x1F + 0x7F. LF/CR inside any path now correctly
fail the guard.
Surfaced by Copilot on #1969; applied to all three branch copies
(rolling/circinus/sagitta) so the workflow stays in sync.
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'docs/_include/coverage')
0 files changed, 0 insertions, 0 deletions
