From 6b438aad3245d8452895198348516ec94ba8d699 Mon Sep 17 00:00:00 2001 From: Herbert Damker <52109189+hdamker@users.noreply.github.com> Date: Thu, 6 Aug 2026 16:30:20 +0200 Subject: [PATCH] fix(validation): suppress ANSI color in bundling-failure annotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Actions sets GITHUB_ACTIONS unconditionally, which redocly's color library treats as reason enough to force color even on captured (non-TTY) output. The resulting trailing color-reset line clobbered the ${err##*$'\n'} extraction, showing only "[39m" instead of the real message — verified against a real runner, not local simulation. --- .github/workflows/validation.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index 5ecd82da..edbcedaa 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -514,6 +514,11 @@ jobs: if: always() && steps.validation.outcome == 'success' env: PATH_NODE_MODULES: ${{ github.workspace }}/.tooling/validation/node_modules/.bin + # Redocly forces ANSI color into captured output on this runner + # (colorette detects GITHUB_ACTIONS unconditionally); without this, + # a trailing color-reset line clobbers the ${err##*$'\n'} extraction + # below, making the warning annotation illegible. + NO_COLOR: "1" run: | export PATH="${PATH_NODE_MODULES}:${PATH}" mkdir -p validation-output/bundled