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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B1W6qKwKxq3oUPDKWicM6i
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user