Skip to content

fix: explicit sparse-checkout cone mode for .github/.agents to fix runtime-import on nested paths#18973

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-runtime-import-issue
Mar 1, 2026
Merged

fix: explicit sparse-checkout cone mode for .github/.agents to fix runtime-import on nested paths#18973
pelikhan merged 2 commits intomainfrom
copilot/fix-runtime-import-issue

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

runtime-import fails for paths like .github/workflows/shared/reporting.md because the sparse checkout step omitted sparse-checkout-cone-mode: true. Without it, git's non-cone mode interprets .github as a literal name match, not a recursive directory cone—so subdirectories like .github/workflows/shared/ are never checked out and the file isn't found at runtime.

Changes

  • Explicit cone mode on .github/.agents checkout steps (compiler_activation_jobs.go, compiler_yaml_helpers.go): adds sparse-checkout-cone-mode: true so git always recursively includes all content under .github/ regardless of the actions/checkout version's default.

  • Clearer error message (runtime_import.cjs): the "file not found" error now shows the absolute path being searched (e.g. /home/runner/work/repo/.github/workflows/shared/reporting.md) instead of the stripped relative path (workflows/shared/reporting.md), which was misleading users into thinking the resolver was looking in the wrong directory.

  • Regression test: added a JS test covering the exact failing case—.github/workflows/shared/reporting.md resolving correctly through processRuntimeImport.

  • 162 lock files + wasm golden files regenerated to include sparse-checkout-cone-mode: true.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -j ACCEPT ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet ode_�� h ../../../.prettierignore 3219604/b056/vet.cfg .cfg lidateRuntimeImpnode ways_declared_te/home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/prettier 86_64/git ache/go/1.25.0/x../../../**/*.json (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -j ACCEPT 64/pkg/tool/linux_amd64/asm ode_�� h ../../../.prettierignore 3219604/b106/vet.cfg n-dir/node (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha --show-toplevel whrn9NjtCOgd /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go r,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,disp--show-toplevel -json flow-ci-test-678rev-parse 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha runs/20260301-042911-43373/test-2586842469 remote.origin.url /usr/bin/git "prettier" --wrigit git 64/bin/go git init�� /usr/bin/git sh /usr/bin/git ath ../../../.prgit git 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha /home/REDACTED/work/gh-aw/gh-aw/.github/workflows rev-parse /usr/bin/git --show-toplevel zjhFLe3IJKDggsX4rev-parse /usr/bin/git git -C /tmp/shared-actions-test3870772813 rev-parse /usr/bin/git --show-toplevel go /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha -json GO111MODULE /opt/hostedtoolcache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env 2911-43373/test-2586842469 l 1008876/b409/vet.cfg GOINSECURE GOMOD GOMODCACHE node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha 8528925/b408/_pkg_.a /opt/hostedtoolcache/node/24.13.1/x64/bin/node ache/node/24.13.1/x64/bin/node Safe: ${{ githubgit go /usr/bin/git git t-35�� sistency_KeyOrdering3249366385/001/test1.md git /usr/bin/lsof --show-toplevel go /usr/bin/git lsof (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE pU/LCdcE90MYeg_f/tmp/go-build3066452105/b433/_testmain.go env -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -aw/git/ref/tags/v1.0.0 sh /usr/bin/git npx prettier --cgit GOPROXY 64/bin/go git rev-�� --show-toplevel sh /opt/hostedtoolcache/node/24.13.1/x64/bin/node ub/workflows node 64/bin/go node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel go /usr/bin/git 2994720368 GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha f/tags/v999.999.999 -importcfg /usr/bin/git -s -w -buildmode=exe git rev-�� --show-toplevel -extld=gcc ache/node/24.13.1/x64/bin/node ck 'scripts/**/*git GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha runs/20260301-042451-31204/test-31462662 ^remote\..*\.gh-resolved$ /usr/bin/git s/test.md GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel go /usr/bin/git -json GO111MODULE 64/bin/go git rev-�� --show-toplevel go /usr/bin/git 1837543472/.githgit GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha GOSUMDB GOWORK 64/bin/go GOINSECURE GOMOD GOMODCACHE go ache�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha g/logger/exampleGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/xGO111MODULE env 2581257/b395/_pkGOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha s/test.md -test.v=true /usr/bin/git -test.timeout=10git -test.run=^Test -test.short=true--show-toplevel git -C /home/REDACTED/work/gh-aw/gh-aw rev-parse /usr/bin/infocmp ck 'scripts/**/*git GO111MODULE 64/bin/go infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha -bool -buildtags e/git -errorsas -ifaceassert -nilfunc e/git conf�� --get remote.origin.url ache/node/24.13.1/x64/bin/node --write **/*.cjs 64/bin/go ache/node/24.13.1/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git -C /tmp/gh-aw-test-runs/20260301-043150-47566/test-3186306201/.github/workflows config /usr/bin/git remote.origin.urgit go /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha runs/20260301-042451-31204/test-31462662 -trimpath /usr/bin/git -p github.com/githurev-parse -lang=go1.25 git -C /home/REDACTED/work/gh-aw/gh-aw/.github/workflows rev-parse ache/node/24.13.1/x64/bin/node -c=4 -nolocalimports -importcfg /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha /usr/bin/git bash 1/x64/bin/node --noprofile git 64/bin/go 1/x64/bin/node conf�� user.name Test User /usr/bin/git --write **/*.cjs 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha --show-toplevel git /usr/bin/git --show-toplevel 64/pkg/tool/linurev-parse /usr/bin/git git rev-�� --show-toplevel git /opt/hostedtoolcache/node/24.13.1/x64/bin/node nPathSetup_Goroogit -4JwI3gMRc7CZW40rev-parse /usr/bin/git node (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha -json GO111MODULE ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet env -json GO111MODULE ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE erignore env -json GO111MODULE 1/x64/bin/node GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha --show-toplevel git ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile --show-toplevel go /usr/bin/git ache/go/1.25.0/x64/pkg/tool/linux_amd64/compile -1 8528925/b398/_pkg_.a git 8528925/b398=> --show-toplevel x_amd64/asm /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE Gh/TaETWC1RVjKHc/tmp/go-build3066452105/b425/_testmain.go (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 GO111MODULE tions/setup/js/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git /usr/bin/git k/gh-aw/gh-aw/.g/opt/hostedtoolcache/node/24.13.1/x64/bin/node rev-parse /usr/bin/git git rev-�� --show-toplevel git 64/pkg/tool/linux_amd64/cgo --get remote.origin.urrev-parse /usr/bin/git 64/pkg/tool/linux_amd64/cgo (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env */*.ts' '**/*.json' --ignore-path ../../../.prettierignore GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 gh /usr/bin/git /repos/actions/ggit --jq /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --get remote.origin.urrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go env */*.ts' '**/*.json' --ignore-path ../../../.pret-- GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 infocmp /usr/bin/git xterm-color node /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel sh /usr/bin/git git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE Zm/GFtmVa307QDDN/home/REDACTED/work/gh-aw/gh-aw/pkg/timeutil/format_test.go (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE cfd174d5aefbcc8696d4f8f15f83caa4027ba640ebe1c110-d GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git /usr/bin/git --show-toplevel -tests /usr/bin/git git rev-�� --show-toplevel git 64/pkg/tool/linux_amd64/vet --get (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE tions/node_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 e/git /usr/bin/git /tmp/gh-aw-test-git config /tmp/go-build144--show-toplevel git rev-�� --show-toplevel /tmp/go-build1441008876/b430/workflow.test /usr/bin/git -test.paniconexigit -test.v=true /opt/hostedtoolc--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE de_modules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 4 /usr/bin/git d -name bin git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet 64/pkg/tool/linux_amd64/vet -bool -buildtags /usr/bin/git 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE ules/.bin/node GOINSECURE GOMOD GOMODCACHE go tion�� -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 git /usr/bin/git --show-toplevel -tests ache/node/24.13.--show-toplevel git rev-�� --show-toplevel ache/node/24.13.1/x64/bin/node 64/pkg/tool/linux_amd64/vet uts.version remote.origin.urrev-parse /usr/bin/git 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path GOSUMDB GOWORK 64/bin/go GOINSECURE GOMOD GOMODCACHE go env ck 'scripts/**/*GOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE sh (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 GOMOD GOMODCACHE x_amd64/vet env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha h ../../../.pret.prettierignore 3219604/b078/vet--log-level=error 64/bin/sh (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 1980224491/.github/workflows GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha --show-toplevel ache/go/1.25.0/x-ifaceassert /usr/bin/git -json GO111MODULE /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel go /usr/bin/git -instructions-tedocker GO111MODULE /home/REDACTED/.lotest/concurrent-image:v1.0.0 git (http block)
  • https://api.github.com/repos/githubnext/agentics/git/ref/tags/
    • Triggering command: /usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha verbose 3219604/b196/vet.cfg modules/@npmcli/run-script/lib/node-gyp-bin/node (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha h ../../../.prettierignore GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha --show-toplevel go /usr/bin/git itattributes-tesgit GO111MODULE /opt/hostedtoolc--show-toplevel git rev-�� tmatter-with-env-template-expressions.md go e/git -json l /home/REDACTED/wor--show-toplevel e/git (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE go 8d51�� -json GO111MODULE ache/go/1.25.0/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion /home/REDACTED/worgit rev-parse /usr/bin/git git log --oneline -10 /usr/bin/git --show-toplevel (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE go m/_n�� -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go --show-toplevel 64/pkg/tool/linuenv run-script/lib/n-json node /hom�� --write scripts/**/*.js de .prettierignore --log-level=erro/opt/hostedtoolcache/node/24.13.1/x64/bin/npx /usr/bin/git node (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go --show-toplevel 64/pkg/tool/linuenv /usr/bin/git node /hom�� --write scripts/**/*.js 64/bin/go .prettierignore --log-level=erro/opt/hostedtoolcache/node/24.13.1/x64/bin/npx /usr/bin/git node (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build3066452105/b380/cli.test /tmp/go-build3066452105/b380/cli.test -test.testlogfile=/tmp/go-build3066452105/b380/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE ortcfg k/gh�� 77cf8fef1eb95376GOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD erignore ache/go/1.25.0/xGO111MODULE (http block)
    • Triggering command: /tmp/go-build1441008876/b380/cli.test /tmp/go-build1441008876/b380/cli.test -test.testlogfile=/tmp/go-build1441008876/b380/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true --show-toplevel go /usr/bin/git /bin/sh -c npx prettier --wGOINSECURE git 64/bin/go ettierignore go /usr/bin/git sh (http block)
    • Triggering command: /tmp/go-build2658528925/b001/cli.test /tmp/go-build2658528925/b001/cli.test -test.testlogfile=/tmp/go-build2658528925/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s rev-�� --show-toplevel go 64/bin/node .js' --ignore-pagit GO111MODULE ache/go/1.25.0/x--show-toplevel git 1/x6�� --show-toplevel go /usr/bin/git -json GO111MODULE ache/uv/0.10.7/x--show-toplevel git (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name GOSUMDB GOWORK 64/bin/go GOINSECURE GOMOD GOMODCACHE go env ck 'scripts/**/*GOINSECURE GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name npx prettier --wGOINSECURE git 64/bin/go --show-toplevel 64/pkg/tool/linuenv /usr/bin/git sh -c "prettier" --wriGOINSECURE git 64/bin/go tierignore x_amd64/vet /usr/bin/git node (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name nsion go /usr/bin/git archie.md GO111MODULE ache/go/1.25.0/x--show-toplevel git rev-�� --show-toplevel go /usr/bin/git 2911-43373/test-git GO111MODULE ache/go/1.25.0/x--show-toplevel git (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>runtime-import fails for .github/workflows/* paths (resolved as workflows/*)</issue_title>
<issue_description>### Summary

runtime-import fails when importing files from .github/workflows/..., even though the file exists in the checked out repository.

It appears the resolver rewrites or strips the .github path segment and then looks for workflows/..., which does not exist.

It looks like the issue-triage-agent is having the same issue currently in this repo

Reproduction

  1. Create a workflow markdown with:
imports:
  - shared/reporting.md
  1. Compile with gh aw compile (v0.50.5), resulting lock file includes:
{{#runtime-import .github/workflows/shared/reporting.md}}
  1. Run the generated workflow in GitHub Actions.

Actual Result

Interpolation fails with:

ERR_API: Failed to process runtime import for .github/workflows/shared/reporting.md:
ERR_SYSTEM: Runtime import file not found: workflows/shared/reporting.md

Expected Result

runtime-import should resolve .github/workflows/shared/reporting.md exactly as written (or produce a clear validation error during compile if that path is unsupported).

Environment

  • gh aw version: v0.50.5
  • Runner: ubuntu-latest
  • Repo is checked out at ${{ github.workspace }}
  • File exists at .github/workflows/shared/reporting.md in the default branch and in checkout

Notes

Workaround is to avoid runtime imports from .github/... and inline content, but this causes duplication.
</issue_description>

Comments on the Issue (you are @copilot in this section)

@pelikhan Thanks for investigating this. Can you try again using the latest release? @pelikhan Investigate this issue.

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…arse-checkout-cone-mode

Add sparse-checkout-cone-mode: true to .github/.agents checkout steps so
subdirectories like .github/workflows/shared/ are always included. Improve
error message to show absolute path. Add regression test for nested paths.
Recompile 162 lock files and update wasm golden files.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix runtime-import failure for .github/workflows paths fix: explicit sparse-checkout cone mode for .github/.agents to fix runtime-import on nested paths Mar 1, 2026
@pelikhan pelikhan marked this pull request as ready for review March 1, 2026 04:57
Copilot AI review requested due to automatic review settings March 1, 2026 04:57
@pelikhan pelikhan merged commit fccfb62 into main Mar 1, 2026
108 checks passed
@pelikhan pelikhan deleted the copilot/fix-runtime-import-issue branch March 1, 2026 05:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures runtime imports can resolve nested paths under .github/ by forcing sparse-checkout cone mode in generated workflows, and improves runtime-import diagnostics with absolute-path reporting.

Changes:

  • Emit sparse-checkout-cone-mode: true for .github / .agents sparse checkouts in both main and activation job generators.
  • Update runtime-import missing-file errors/warnings to report the resolved absolute path.
  • Add a regression test covering .github/workflows/shared/... imports, and regenerate lock/wasm golden fixtures accordingly.

Reviewed changes

Copilot reviewed 168 out of 168 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/workflow/compiler_yaml_helpers.go Adds sparse-checkout-cone-mode: true to the generated .github/.agents sparse checkout step.
pkg/workflow/compiler_activation_jobs.go Adds sparse-checkout-cone-mode: true to the activation job’s .github/.agents sparse checkout step.
actions/setup/js/runtime_import.cjs Improves missing-file warnings/errors to include the resolved absolute path.
actions/setup/js/runtime_import.test.cjs Updates assertions for new absolute-path messages and adds regression coverage for nested .github/workflows/shared/... imports.
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/basic-copilot.golden Regenerates golden output to include sparse-checkout-cone-mode: true.
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/smoke-copilot.golden Regenerates golden output to include sparse-checkout-cone-mode: true.
pkg/workflow/testdata/wasm_golden/TestWasmGolden_CompileFixtures/with-imports.golden Regenerates golden output to include sparse-checkout-cone-mode: true.
.github/workflows/workflow-skill-extractor.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/workflow-normalizer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/workflow-health-manager.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/workflow-generator.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/weekly-safe-outputs-spec-review.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/weekly-issue-summary.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/weekly-editors-health-check.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/video-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/unbloat-docs.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/ubuntu-image-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/typist.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/tidy.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/test-workflow.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/test-project-url-default.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/test-dispatcher.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/test-create-pr-error-handling.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/terminal-stylist.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/technical-doc-writer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/super-linter.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/sub-issue-closer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/step-name-alignment.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/static-analysis-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/stale-repo-identifier.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-workflow-call.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-test-tools.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-temporary-id.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-project.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-multi-pr.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-gemini.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-copilot.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-copilot-arm.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-codex.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-claude.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/smoke-agent.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/slide-deck-maintainer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/sergo.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/semantic-function-refactor.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/security-review.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/security-compliance.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/security-alert-burndown.campaign.g.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/scout.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/schema-consistency-checker.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/safe-output-health.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/research.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/repository-quality-improver.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/repo-tree-map.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/repo-audit-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/release.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/refiner.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/q.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/python-data-charts.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/prompt-clustering-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/pr-triage-agent.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/pr-nitpick-reviewer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/portfolio-analyst.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/poem-bot.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/plan.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/pdf-summary.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/org-health-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/notion-issue-summary.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/metrics-collector.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/mergefest.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/mcp-inspector.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/lockfile-stats.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/layout-spec-maintainer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/jsweep.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/issue-triage-agent.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/issue-monster.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/issue-arborist.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/instructions-janitor.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/hourly-ci-cleaner.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/grumpy-reviewer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/gpclean.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/go-pattern-detector.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/go-logger.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/go-fan.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/glossary-maintainer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/github-remote-mcp-auth-test.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/github-mcp-tools-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/github-mcp-structural-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/functional-pragmatist.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/firewall.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/firewall-escape.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/example-workflow-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/example-permissions-warning.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/example-custom-error-patterns.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/duplicate-code-detector.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/draft-pr-cleanup.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/docs-noob-tester.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/discussion-task-miner.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/dictation-prompt.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/developer-docs-consolidator.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/dev.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/dev-hawk.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/dependabot-go-checker.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/dependabot-burner.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/delight.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/deep-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-workflow-updater.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-testify-uber-super-expert.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-team-status.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-team-evolution-insights.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-syntax-error-quality.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-semgrep-scan.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-security-red-team.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-secrets-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-safe-outputs-conformance.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-safe-output-optimizer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-repo-chronicle.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-rendering-scripts-verifier.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-regulatory.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-performance-summary.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-observability-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-news.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-multi-device-docs-tester.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-mcp-concurrency-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-malicious-code-scan.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-issues-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-firewall-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-file-diet.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-doc-updater.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-doc-healer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-copilot-token-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-compiler-quality.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-code-metrics.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-cli-tools-tester.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-cli-performance.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-choice-test.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-assign-issue-to-user.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/daily-architecture-diagram.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/agent-performance-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/agent-persona-explorer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/ai-moderator.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/archie.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/artifacts-summary.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/audit-workflows.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/auto-triage-issues.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/blog-auditor.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/bot-detection.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/brave.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/breaking-change-checker.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/changeset.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/chroma-issue-indexer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/ci-coach.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/ci-doctor.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/claude-code-user-docs-review.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/cli-consistency-checker.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/cli-version-checker.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/cloclo.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/code-scanning-fixer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/code-simplifier.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/codex-github-remote-mcp-test.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/commit-changes-analyzer.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/contribution-check.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-agent-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-cli-deep-research.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-pr-merged-report.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-session-insights.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.
.github/workflows/copilot-cli-deep-research.lock.yml Regenerated lock workflow: adds sparse-checkout-cone-mode: true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


// For all modes (dev, script, release), checkout .github and .agents folders
// This works in release mode where actions aren't checked out
// sparse-checkout-cone-mode: true ensures subdirectories under .github/ are recursively included
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added comment mentions only .github/ recursion, but this checkout step also includes .agents in sparse-checkout, and cone mode affects both. Consider updating the comment to explicitly mention both .github/ and .agents/ to avoid misleading future readers.

Copilot uses AI. Check for mistakes.

// For activation job, always add sparse checkout of .github and .agents folders
// This is needed for runtime imports during prompt generation
// sparse-checkout-cone-mode: true ensures subdirectories under .github/ are recursively included
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new comment calls out recursive inclusion for .github/, but this sparse checkout step also includes .agents. Since cone mode applies to both entries, it would be clearer to mention .agents/ recursion as well.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runtime-import fails for .github/workflows/* paths (resolved as workflows/*)

3 participants