ci: Skip grind workflow on fork PRs (#31717)

Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
n8n-cat-bot[bot] 2026-06-04 10:34:34 +01:00 committed by GitHub
parent 6cd07e5b42
commit 780e86c838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,13 @@ concurrency:
jobs:
grind:
name: Grind changed editor-ui tests
# Fork PRs get a read-only GITHUB_TOKEN, so posting the sticky comment
# 403s regardless of the `permissions` block below. Switching to
# `pull_request_target` would grant a write token but is unsafe here
# because grind executes the PR's changed test files. Skip forks; if we
# want fork coverage later, do it via a separate privileged
# `workflow_run` workflow that picks up an artifact from this one.
if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ${{ vars.RUNNER_PROVIDER == 'github' && 'ubuntu-latest' || 'blacksmith-4vcpu-ubuntu-2204' }}
# Non-blocking: a failure here surfaces in the PR Checks tab as a soft
# signal but never gates merge. Remove `continue-on-error` once we have