:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
perf(ci): sparse-checkout paths-filter in change-detection jobs (#86463)
Frank Hamand30826068399d
diff --git a/.agents/skills/authoring-ci-workflows/SKILL.md b/.agents/skills/authoring-ci-workflows/SKILL.mdindex 69d82ab80762..b2d3fdd940cb 100644--- a/.agents/skills/authoring-ci-workflows/SKILL.md+++ b/.agents/skills/authoring-ci-workflows/SKILL.md@@ -121,19 +121,49 @@ Four rules for the gate body:`WF007` enforces 1, 4, and the `always()` condition, and it takes the dependency list from `needs:` as well as the step body, so a job you wired into `needs:` and then forgot to test is reported rather than silently trusted.The half of rule 2 it cannot check is whether you named the right jobs in `needs:` to begin with: "reporting job" and "coverage job" look identical to a linter, so that one is on you and the reviewer.-## Checkout / clone — shallow by default+## Checkout / clone — sparse first, then shallow-Full clones are slow and hang on degraded runners; blobs dominate clone size and are lazily fetchable.-Default to shallow; go deep only for real merge-base or version math, and even then bound the depth and filter blobs.+This repo is 45k tracked files and 4.6 GiB of packed objects, so **what you materialize costs more than how much history you fetch**.+Measured checkout-step durations, from the GitHub API on real runs:++| Pattern | depot-ubuntu-24.04 | GitHub-hosted ubuntu |+| ----------------------------------------------- | ------------------ | -------------------- |+| `sparse-checkout` of a few paths, cone mode off | 0–7s | 0–7s |+| plain checkout (depth 1) | 11–13s | 22–44s |+| `fetch-depth: 1000` + `filter: blob:none` | 53–59s | — |++- **Biggest lever: check out only the paths the job reads.**+ Sparse-checkout is not just for single files — a job that runs a local composite action, reads a JSON config, or lints one directory should name those paths and nothing else.++ ```yaml+ - uses: actions/checkout@<sha> # v6+ with:+ sparse-checkout: |+ .github/actions/paths-filter+ .github/clickhouse-versions.json+ sparse-checkout-cone-mode: false+ ```++- **Always set `sparse-checkout-cone-mode: false`.**+ Cone mode additionally materializes every file in the repo root — here 70 files and 21.5 MB, `.test_durations` alone 18.5 MB — which is most of what you were trying to avoid.+ Cone mode also only takes whole directories, so it drags in all of `bin/` when you wanted one script.++- **`filter: blob:none` is counterproductive if the job then materializes the tree.**+ It removes blobs from the fetch, but `git checkout` immediately lazy-fetches every blob in HEAD in a second round trip, which is slower than having fetched them in the pack.+ That lazy fetch also intermittently fails its per-blob credential lookup with `could not read Username for github.com` (#59779, blocked a merge until retried).+ Pair `blob:none` with `sparse-checkout` so the lazy fetch is a handful of blobs, or drop it and take the plain depth-1 checkout.- **Default:** plain `actions/checkout` (depth 1). Add nothing.-- **Diffing against the PR base:** bounded depth + blobless, then an explicit, scoped fetch (the sanctioned pattern, from `ci-backend.yml`):++- **Diffing against the PR base:** you need real history, so bound the depth, filter blobs, **and** sparse-checkout the files the job reads:```yaml- uses: actions/checkout@<sha> # v6with:fetch-depth: 1000filter: blob:none+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- name: Fetch PR base for affected diffif: github.event_name == 'pull_request'env:@@ -141,13 +171,21 @@ Default to shallow; go deep only for real merge-base or version math, and even trun: git fetch --no-tags --depth=1000 --filter=blob:none origin "$BASE_REF:refs/remotes/origin/$BASE_REF"```-- **One file (e.g. `.nvmrc` before `setup-node`):** `sparse-checkout` it instead of cloning the repo.+ A sparse working tree does not affect `git merge-base`, `git diff <a>...<b>`, `git log --name-status`, `git ls-tree`, `git ls-files`, or `git show <rev>:<path>` — those read the object database or the index.+ Only commands that compare against the worktree (`git diff HEAD`, `git status`) see the skip-worktree entries.+ One caveat when `blob:none` is also set: `git show <rev>:<path>` still needs that blob, and a sparse checkout never downloaded it, so the read becomes a lazy fetch that can fail.+ Name any file a step reads that way in the sparse set — `ci-dagster.yml` does this for `docker-compose.base.yml`, whose contents feed a cache key.++- **`changes` / paths-filter gating jobs:** on `pull_request` the vendored `.github/actions/paths-filter` diffs via the GitHub API and never touches the tree.+ The only reason to check out is that a local action must exist on disk, so sparse-checkout `.github/actions/paths-filter` plus any file the job's own steps read.+ **Never pass `base: HEAD` to paths-filter from a sparse job** — that routes it to `git diff HEAD`, which a sparse worktree makes return nothing, so every downstream job silently skips green.+- **Foot-gun:** `git fetch --deepen=N` with **no refspec** falls back to the wildcard `refs/heads/*` and pulls _every branch_.Always pass an explicit, `--no-tags`, `--filter=blob:none` refspec scoped to the base ref.(Bumping `actions/checkout`'s own `fetch-depth` is safe — it uses a scoped `refs/pull/N/merge` refspec.)- The linter rejects `fetch-depth: 0` unless you add `filter: blob:none`, use `sparse-checkout`, or justify it with `# hogli-lint: allow-full-depth-checkout -- <reason>`.- Genuinely full-history jobs: repo mirroring (`foss-sync.yml`), tag/submodule version math (`release-cli.yml`).- Most base-diff jobs should use bounded `1000 + blob:none`.+ Genuinely full-history jobs: repo mirroring (`foss-sync.yml`), tag/submodule version math (`release-cli.yml`, `desktop-tag.yml`).+ Most base-diff jobs should use bounded `1000 + blob:none` **plus** a sparse set.## Pinning and tool versions@@ -250,7 +288,7 @@ Roll out a new blocking lint the same way: ship `continue-on-error`, clear the i- [ ] Triggers scoped: trigger `paths:` where the whole workflow is skippable; a required check must still fire on every PR (never paths-gate it into never dispatching).- [ ] Canonical `concurrency:` block (per-SHA push arm if it publishes on push).- [ ] `timeout-minutes` on every job (except reusable-caller jobs).-- [ ] Checkout is shallow, or bounded `1000 + blob:none` for base diffing.+- [ ] Checkout names only the paths the job reads (`sparse-checkout` + cone mode off), or is shallow; bounded `1000 + blob:none` only for base diffing.- [ ] Third-party actions SHA-pinned; Node from `.nvmrc`; `setup-uv` version pinned.- [ ] External fetches retry (`--retry-all-errors`), except where a repeat has a side effect.- [ ] High-volume API calls on a dedicated App token with `|| github.token` fork fallback.diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.ymlindex 59541e5a7fa7..06faf1db67b0 100644--- a/.depot/workflows/ci-backend.yml+++ b/.depot/workflows/ci-backend.yml@@ -257,6 +257,8 @@ jobs:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:clean: false+ sparse-checkout: .depot/actions/paths-filter+ sparse-checkout-cone-mode: false- name: Clean up data directories with container permissionsrun: |# Use docker to clean up files created by containersdiff --git a/.github/workflows/cd-sandbox-base-image.yml b/.github/workflows/cd-sandbox-base-image.ymlindex 94b3840bdce4..db9a11d0d076 100644--- a/.github/workflows/cd-sandbox-base-image.yml+++ b/.github/workflows/cd-sandbox-base-image.yml@@ -43,6 +43,9 @@ jobs:sandbox_image: ${{ steps.filter.outputs.sandbox_image }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-token@@ -78,7 +81,10 @@ jobs:contains(github.event.pull_request.labels.*.name, 'build-tasks-sandbox-image'))runs-on: ubuntu-latest- timeout-minutes: 30+ # `Run migrations` builds the schema from scratch on ubuntu-latest with no schema cache and+ # takes 22-29 minutes, so a 30-minute budget left no headroom and cut the job off mid-migrate+ # on two of three recent runs. `Build skills`, the step this job exists for, takes 10 seconds.+ timeout-minutes: 45permissions:contents: readdiff --git a/.github/workflows/ci-agent-proxy.yml b/.github/workflows/ci-agent-proxy.ymlindex 04fa033de703..97719a1ee7e8 100644--- a/.github/workflows/ci-agent-proxy.yml+++ b/.github/workflows/ci-agent-proxy.yml@@ -26,6 +26,9 @@ jobs:agent_proxy: ${{ steps.filter.outputs.agent_proxy || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.ymlindex 3d0c046567b1..9e6276965392 100644--- a/.github/workflows/ci-agent-skills.yml+++ b/.github/workflows/ci-agent-skills.yml@@ -29,6 +29,9 @@ jobs:skills: ${{ steps.filter.outputs.skills || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex aa4fc1f98873..c457c08bc257 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -126,6 +126,8 @@ jobs:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:clean: false+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- name: Clean up data directories with container permissionsrun: |# Use docker to clean up files created by containersdiff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.ymlindex a3ed1488c3c3..353208e1064e 100644--- a/.github/workflows/ci-dagster.yml+++ b/.github/workflows/ci-dagster.yml@@ -84,11 +84,20 @@ jobs:# fetch-depth=1000 + blob:none mirrors ci-backend's turbo-discover so# HEAD^2 (PR branch tip) is reachable for the merge-base step below# without the cost of fetching blobs.+ # docker-compose.base.yml is in the sparse set for the schema-key step, which+ # reads it at the merge base. Checking it out puts the blob on disk, so that+ # `git show` resolves locally rather than through a lazy fetch that could fail+ # quietly and leave the migration cache key wrong.- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 1000filter: blob:noneclean: false+ sparse-checkout: |+ .github/actions/paths-filter+ .github/clickhouse-versions.json+ docker-compose.base.yml+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.ymlindex d26f8da7f279..a557d88b5a37 100644--- a/.github/workflows/ci-frontend.yml+++ b/.github/workflows/ci-frontend.yml@@ -65,6 +65,12 @@ jobs:# For pull requests it's not necessary to check out the code, but we# also want this to run on master, so we need to check out- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: |+ .github/actions/paths-filter+ bin/frontend-exclude-filter+ pnpm-workspace.yaml+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.ymlindex 9d827c283f1f..0bd22418e945 100644--- a/.github/workflows/ci-hobby.yml+++ b/.github/workflows/ci-hobby.yml@@ -44,6 +44,9 @@ jobs:label_removed: ${{ steps.check-label.outputs.label_removed }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-hog.yml b/.github/workflows/ci-hog.ymlindex 3b08528de6a5..d54944263cb0 100644--- a/.github/workflows/ci-hog.yml+++ b/.github/workflows/ci-hog.yml@@ -36,6 +36,9 @@ jobs:# For pull requests it's not necessary to checkout the code, but we# also want this to run on master so we need to checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-llm-gateway.yml b/.github/workflows/ci-llm-gateway.ymlindex ad9fc3a024b7..a9409a07594e 100644--- a/.github/workflows/ci-llm-gateway.yml+++ b/.github/workflows/ci-llm-gateway.yml@@ -34,6 +34,9 @@ jobs:llm_gateway: ${{ steps.filter.outputs.llm_gateway || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-mcp-ui-apps.yml b/.github/workflows/ci-mcp-ui-apps.ymlindex fb10c2ed1de9..8db81a09edec 100644--- a/.github/workflows/ci-mcp-ui-apps.yml+++ b/.github/workflows/ci-mcp-ui-apps.yml@@ -25,6 +25,9 @@ jobs:ui-apps: ${{ steps.filter.outputs.ui-apps || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.ymlindex 6c9cc1d27aaf..73addb33cbdc 100644--- a/.github/workflows/ci-mcp.yml+++ b/.github/workflows/ci-mcp.yml@@ -41,6 +41,9 @@ jobs:mcp: ${{ steps.filter.outputs.mcp || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false# MCP integration tests boot the full PostHog backend (Django web server,# Celery worker, migrations, demo data), so the filter stays broad: anydiff --git a/.github/workflows/ci-migrations-service-separation-check.yml b/.github/workflows/ci-migrations-service-separation-check.ymlindex 3f5cace4e61a..6a855fe27d54 100644--- a/.github/workflows/ci-migrations-service-separation-check.yml+++ b/.github/workflows/ci-migrations-service-separation-check.yml@@ -21,6 +21,9 @@ jobs:timeout-minutes: 5steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false# Author-attested escape hatch for DB-noop migrations (e.g. SeparateDatabaseAndState# state-only renames) that ship safely alongside service code. The check is path-onlydiff --git a/.github/workflows/ci-ml-mirror-image-scrub-container.yml b/.github/workflows/ci-ml-mirror-image-scrub-container.ymlindex 20252fe3dcaa..5fc4ca6b7132 100644--- a/.github/workflows/ci-ml-mirror-image-scrub-container.yml+++ b/.github/workflows/ci-ml-mirror-image-scrub-container.yml@@ -25,6 +25,9 @@ jobs:steps:- name: Check outuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-nodejs-container.yml b/.github/workflows/ci-nodejs-container.ymlindex 2adc8719bbe2..ccf355fd38a8 100644--- a/.github/workflows/ci-nodejs-container.yml+++ b/.github/workflows/ci-nodejs-container.yml@@ -44,6 +44,9 @@ jobs:steps:- name: Check outuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-oauth-proxy.yml b/.github/workflows/ci-oauth-proxy.ymlindex 7241d54c7367..903aa8c3ddbd 100644--- a/.github/workflows/ci-oauth-proxy.yml+++ b/.github/workflows/ci-oauth-proxy.yml@@ -25,6 +25,9 @@ jobs:oauth-proxy: ${{ steps.filter.outputs.oauth-proxy || 'true' }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-proto.yml b/.github/workflows/ci-proto.ymlindex 5a87c1918a24..a8b4620f7a91 100644--- a/.github/workflows/ci-proto.yml+++ b/.github/workflows/ci-proto.yml@@ -27,6 +27,8 @@ jobs:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:clean: false+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokenif: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repositorydiff --git a/.github/workflows/ci-python.yml b/.github/workflows/ci-python.ymlindex afd52270d67d..b45e942b9f50 100644--- a/.github/workflows/ci-python.yml+++ b/.github/workflows/ci-python.yml@@ -31,6 +31,9 @@ jobs:# For pull requests it's not necessary to checkout the code, but we# also want this to run on master so we need to checkout- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-recording-rasterizer-container.yml b/.github/workflows/ci-recording-rasterizer-container.ymlindex 2067a73443f5..7d2242e87248 100644--- a/.github/workflows/ci-recording-rasterizer-container.yml+++ b/.github/workflows/ci-recording-rasterizer-container.yml@@ -48,6 +48,9 @@ jobs:steps:- name: Check outuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.ymlindex 0a5e5f768204..62dfa2b772e3 100644--- a/.github/workflows/ci-rust.yml+++ b/.github/workflows/ci-rust.yml@@ -34,6 +34,8 @@ jobs:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:clean: false+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokenif: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repositorydiff --git a/.github/workflows/ci-security.yaml b/.github/workflows/ci-security.yamlindex 535505a9a44d..cb2d3b7e1503 100644--- a/.github/workflows/ci-security.yaml+++ b/.github/workflows/ci-security.yaml@@ -40,6 +40,8 @@ jobs:with:clean: falsepersist-credentials: false+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- name: Force all scans for oversized pull requestsid: oversizedif: github.event_name == 'pull_request' && github.event.pull_request.changed_files > 3000diff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex 9a6675203da3..db4c17aa583a 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -75,6 +75,12 @@ jobs:# ./.github/actions/paths-filter steps, which must exist on disk (on# pull_request events they still diff via the API, not the checkout).- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: |+ .github/actions/paths-filter+ bin/frontend-exclude-filter+ pnpm-workspace.yaml+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokendiff --git a/.github/workflows/container-images-ci.yml b/.github/workflows/container-images-ci.ymlindex 2b0f2f02deb9..8e9a2da7fa86 100644--- a/.github/workflows/container-images-ci.yml+++ b/.github/workflows/container-images-ci.yml@@ -38,6 +38,9 @@ jobs:dockerfiles_files: ${{ steps.filter.outputs.dockerfiles_files }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ sparse-checkout: .github/actions/paths-filter+ sparse-checkout-cone-mode: false- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1id: app-tokenif: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository