ci: keep the patch-whitespace check off vendored third-party trees
source-pr / source (pull_request) Successful in 2m9s
source-pr / source (pull_request) Failing after 10s

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
This commit is contained in:
2026-11-12 14:55:25 -06:00
co-authored by Claude Opus 5.5
parent dce31c8784
commit abb6bfd35d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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'