From abb6bfd35da1dc5c7b542192053d7983cce6f1e4 Mon Sep 17 00:00:00 2001 From: Noah <2+noah@noreply.gitea.bluefla.re> Date: Thu, 12 Nov 2026 14:55:25 -0600 Subject: [PATCH] ci: keep the patch-whitespace check off vendored third-party trees The afw line adds the cargo vendor tree (vendor/) and the flare-ui source (third-party/). Their upstream files carry trailing whitespace and SSE golden fixtures end with a blank line by format; editing them would break cargo's vendor checksums and the fixtures. Exclude both trees from git diff --check in source-pr and fast-pr, as the toolkit's gate does. No first-party file fails the check. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i --- .gitea/workflows/fast-pr.yml | 2 +- .gitea/workflows/source-pr.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/fast-pr.yml b/.gitea/workflows/fast-pr.yml index c09f847..3e33b26 100644 --- a/.gitea/workflows/fast-pr.yml +++ b/.gitea/workflows/fast-pr.yml @@ -39,7 +39,7 @@ jobs: if: steps.surface.outputs.surface == 'documentation' run: | base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" - git diff --check "$base" HEAD + git diff --check "$base" HEAD -- . ':(exclude)vendor' ':(exclude)third-party' if git grep -nIE '^[[:space:]]*-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----[[:space:]]*$' --; then echo "private key material found in tracked source" >&2 exit 1 diff --git a/.gitea/workflows/source-pr.yml b/.gitea/workflows/source-pr.yml index 5f5ae51..81f74e4 100644 --- a/.gitea/workflows/source-pr.yml +++ b/.gitea/workflows/source-pr.yml @@ -27,9 +27,9 @@ jobs: run: | if [ "${GITHUB_EVENT_NAME:-}" = pull_request ]; then base="$(git merge-base HEAD "origin/$GITHUB_BASE_REF")" - git diff --check "$base" HEAD + git diff --check "$base" HEAD -- . ':(exclude)vendor' ':(exclude)third-party' else - git diff --check HEAD^ HEAD + git diff --check HEAD^ HEAD -- . ':(exclude)vendor' ':(exclude)third-party' fi - name: Check CI and evidence tools if: steps.surface.outputs.surface != 'documentation'