Skip to content

fix: dispatch-workflow fails with "No ref found" when target-ref is a commit SHA#30426

Merged
pelikhan merged 5 commits into
mainfrom
copilot/fix-dispatch-workflow-ref-error
May 5, 2026
Merged

fix: dispatch-workflow fails with "No ref found" when target-ref is a commit SHA#30426
pelikhan merged 5 commits into
mainfrom
copilot/fix-dispatch-workflow-ref-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

resolve_host_repo.cjs was emitting job.workflow_sha (a commit SHA) as target_ref. The compiler-injected target-ref in dispatch_workflow safe outputs forwarded this SHA to createWorkflowDispatch, which only accepts branch/tag refs — causing No ref found for: <sha> failures in workflow_call relay workflows.

Root cause

Two consumers need different ref formats:

  • actions/checkout → wants an immutable SHA for exact-revision pinning
  • createWorkflowDispatch → rejects SHAs, requires a branch/tag ref

Previously a single target_ref output served both, set to the SHA.

Changes

  • resolve_host_repo.cjs: Split into two outputs:

    • target_checkout_ref — SHA from JOB_WORKFLOW_SHA (for checkout pinning, unchanged semantics)
    • target_ref — branch/tag parsed from JOB_WORKFLOW_REF using lastIndexOf('@') (handles edge cases where @ appears in the workflow path); SHA-like values (40-hex) are explicitly rejected and return "" with a warning, since workflow_call can reference a workflow by SHA but createWorkflowDispatch cannot
    • Emits a warning if JOB_WORKFLOW_REF is malformed, missing, or resolves to a SHA (no silent SHA fallback)
  • compiler_activation_job.go: Activation checkout now uses target_checkout_ref (SHA)

  • compiler_activation_job_builder.go: Both target_ref and target_checkout_ref are exposed as activation job outputs; compiler_safe_outputs_config.go already injects needs.activation.outputs.target_ref for dispatch — no change needed there

  • checkout_manager.go: Fixed misleading comments — crossRepoTargetRef is only set in the activation job; removed incorrect claim that downstream jobs also set it

  • Lock files recompiled to reflect the new output and updated checkout ref

Tests added

  • resolve_host_repo.test.cjs — 16 tests covering branch/tag parsing, SHA isolation, tag refs, malformed/missing JOB_WORKFLOW_REF, SHA refs returning "" with a warning, and lastIndexOf correctness with @ in the workflow path
  • TestActivationJobTargetCheckoutRefOutput, TestActivationJobTargetRefIsDispatchCompatible — Go tests verifying output separation
  • TestDispatchWorkflowRelayInjectsDispatchCompatibleRef — verifies the safe-outputs config injects target_ref (branch/tag), never target_checkout_ref (SHA)

Copilot AI and others added 2 commits May 5, 2026 20:06
… SHA

- In resolve_host_repo.cjs: parse branch/tag ref from JOB_WORKFLOW_REF
  (substring after '@') as 'target_ref' for workflow dispatch; emit
  'target_checkout_ref' (JOB_WORKFLOW_SHA) for activation checkout pinning.
  Add warning when JOB_WORKFLOW_REF is malformed or missing.
- In compiler_activation_job.go: use target_checkout_ref (SHA) for
  activation checkout step to preserve exact-revision pinning.
- In compiler_activation_job_builder.go: expose both target_ref
  (dispatch-compatible branch/tag) and target_checkout_ref (SHA) as
  activation job outputs; update comments.
- In checkout_manager.go: update comments to reflect new output names.
- In compiler_safe_outputs_config.go: injection already uses target_ref,
  which now correctly carries the dispatch-compatible branch/tag ref.
- Add resolve_host_repo.test.cjs with full coverage.
- Add TestActivationJobTargetCheckoutRefOutput and
  TestActivationJobTargetRefIsDispatchCompatible Go tests.
- Add TestDispatchWorkflowRelayInjectsDispatchCompatibleRef Go test.

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/7c961cd0-263e-4f48-955d-cf9b3677b028

Co-authored-by: pelikhan <[email protected]>
Copilot AI changed the title [WIP] Fix dispatch-workflow receiving job.workflow_sha as target-ref fix: dispatch-workflow fails with "No ref found" when target-ref is a commit SHA May 5, 2026
Copilot AI requested a review from pelikhan May 5, 2026 20:23
@pelikhan pelikhan marked this pull request as ready for review May 5, 2026 22:02
Copilot AI review requested due to automatic review settings May 5, 2026 22:02
Copy link
Copy Markdown
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

Fixes workflow dispatch failures in workflow_call relay workflows by separating the activation job’s “checkout ref” (immutable SHA) from the “dispatch ref” (branch/tag), so createWorkflowDispatch never receives a commit SHA.

Changes:

  • Split resolve_host_repo outputs into target_checkout_ref (SHA) and target_ref (branch/tag parsed from job.workflow_ref), and update activation checkout to use target_checkout_ref.
  • Expose the new output from the activation job build context and update compiled lock workflows accordingly.
  • Add JS + Go tests to verify output separation and that dispatch_workflow injection uses needs.activation.outputs.target_ref.
Show a summary per file
File Description
actions/setup/js/resolve_host_repo.cjs Introduces target_checkout_ref vs target_ref outputs and parsing logic for dispatch ref.
actions/setup/js/resolve_host_repo.test.cjs Adds vitest coverage for ref parsing/output behavior.
pkg/workflow/compiler_activation_job.go Updates activation .github checkout to use target_checkout_ref (SHA).
pkg/workflow/compiler_activation_job_builder.go Exposes target_checkout_ref and documents intended semantics for both outputs.
pkg/workflow/compiler_activation_job_test.go Adds Go regression tests validating output separation and checkout ref usage.
pkg/workflow/compiler_safe_outputs_config_test.go Ensures dispatch_workflow injection uses needs.activation.outputs.target_ref and not the SHA output.
pkg/workflow/checkout_manager.go Updates cross-repo checkout ref documentation to reflect the new output names.
.github/workflows/smoke-workflow-call.lock.yml Recompiled lockfile to include target_checkout_ref output and use it for checkout ref:.
.github/workflows/smoke-workflow-call-with-inputs.lock.yml Same as above for the “with inputs” smoke workflow lockfile.

Copilot's findings

Tip

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

  • Files reviewed: 9/9 changed files
  • Comments generated: 3

Comment thread actions/setup/js/resolve_host_repo.cjs Outdated
Comment on lines +42 to +50
function parseDispatchRef(workflowRef) {
if (!workflowRef) {
return "";
}
const atIndex = workflowRef.indexOf("@");
if (atIndex === -1) {
return "";
}
return workflowRef.slice(atIndex + 1);
Comment on lines +5 to +31
describe("parseDispatchRef", () => {
it("parses refs/heads/main from a standard workflow_ref", () => {
expect(parseDispatchRef("owner/repo/.github/workflows/file.yml@refs/heads/main")).toBe("refs/heads/main");
});

it("parses refs/tags/v1.2.3 from a tag-triggered workflow_ref", () => {
expect(parseDispatchRef("owner/repo/.github/workflows/file.yml@refs/tags/v1.2.3")).toBe("refs/tags/v1.2.3");
});

it("parses refs/heads/feature/my-branch from a nested branch name", () => {
expect(parseDispatchRef("org/repo/.github/workflows/ci.yml@refs/heads/feature/my-branch")).toBe("refs/heads/feature/my-branch");
});

it("returns empty string when JOB_WORKFLOW_REF is empty", () => {
expect(parseDispatchRef("")).toBe("");
});

it("returns empty string when JOB_WORKFLOW_REF has no '@' separator", () => {
expect(parseDispatchRef("owner/repo/.github/workflows/file.yml")).toBe("");
});

it("does not return a SHA-like value for a tag ref", () => {
const result = parseDispatchRef("owner/repo/.github/workflows/file.yml@refs/tags/v2.0.0");
expect(result).toBe("refs/tags/v2.0.0");
// Must not look like a SHA (40 hex chars)
expect(result).not.toMatch(/^[0-9a-f]{40}$/);
});
Comment thread pkg/workflow/checkout_manager.go Outdated
Comment on lines 152 to 154
// In the activation job this is set to "${{ steps.resolve-host-repo.outputs.target_checkout_ref }}"
// (the immutable commit SHA for exact-revision pinning).
// In the agent and safe_outputs jobs it is set to "${{ needs.activation.outputs.target_ref }}".
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented May 5, 2026

@copilot review comments

- Use lastIndexOf('@') instead of indexOf to correctly handle the edge
  case where the workflow path contains '@'
- Reject 40-hex SHA values returned by parseDispatchRef; workflow_call
  can reference a workflow by SHA but createWorkflowDispatch cannot
  accept a SHA as ref — return "" instead and let the warning fire
- Add tests: SHA ref → "" + warn, lastIndexOf '@' edge case
- Fix misleading checkout_manager.go comments: crossRepoTargetRef is
  only set in the activation job; remove incorrect claim that downstream
  jobs also set it

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/c019f917-d9b4-47b8-8f5f-7de17a437ec8

Co-authored-by: pelikhan <[email protected]>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 5, 2026

@copilot review comments

Addressed all three review points in commit 9e32f7d:

  1. parseDispatchRef now uses lastIndexOf('@') and rejects 40-hex SHA refs (returns "" so the warning fires)
  2. Added tests for SHA-ref input (both in parseDispatchRef unit tests and in main() integration tests) plus a lastIndexOf edge-case test
  3. Fixed the misleading checkout_manager.go comments — removed the incorrect claim that downstream jobs set crossRepoTargetRef

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 gh repo view --json owner,name --jq .owner.login &#43; &#34;/&#34; &#43; .name e_modules/.bin/node gpg.program (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)
    • Triggering command: /usr/bin/gh gh repo view owner/repo conf�� get --local ache/node/24.14.1/x64/bin/npx copilot.originalgit (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name h ../../../.pret.prettierignore (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, .object.type] | @tsv --show-toplevel node /usr/bin/git runs/20260505-22git --write /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git -instructions-tegh -buildtags /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, .object.type] | @tsv &#39;default&#39; || github.actor l /usr/bin/git tmatter-with-nesgh (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, .object.type] | @tsv /ref/tags/v9 --merged=355b4aa1b07cd25f3e154a16be47db1d8f2725d4 sv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git -m initial commit /opt/hostedtoolc--show-toplevel git rev-�� ithub-script/git/ref/tags/v9 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu^remote\..*\.gh-resolved$ bject.type] | @tsv -bool -buildtags /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel gh /usr/bin/git /repos/actions/ggit --jq /usr/bin/git git rev-�� /ref/tags/v9 git sv --show-toplevel ache/go/1.25.8/xrev-parse /usr/bin/gh node (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, .object.type] | @tsv runs/20260505-221636-8279/test-456552449 -importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/api-consumption-report.md (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv ansitiveImports3533810580/001 (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, .object.type] | @tsv xterm-color node /usr/bin/git /home/REDACTED/worgit (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv re --log-level=e!../../../pkg/workflow/js/**/*.json (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv yphen429480415/001&#39; yphen429480415/001&#39; /node ader (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9.0.0
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv github/workflows (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv js/**/*.json&#39; ---p (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, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/gh vaScript42925657gh (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, .object.type] | @tsv /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/approach-validator.md (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/infocmp 877465690 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.1/x64/bin/node /usr/bin/git --show-toplevel (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv bility_SameInputSameOutput3087381655/001/stability-test.md (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/-f config /usr/bin/git remote.origin.urgit h2733723896/001&#39;rev-parse modules/@npmcli/--show-toplevel git -C runs/20260505-221636-8279/test-2877465690 config /usr/bin/git remote.origin.urgit (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv ansitiveImports3533810580/001 (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, .object.type] | @tsv xterm-color (http block)
  • https://api.github.com/repos/aws-actions/configure-aws-credentials/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu2 bject.type] | @tsv -bool -buildtags /usr/bin/git git rev-�� --show-toplevel git /usr/bin/infocmp --show-toplevel l 64/pkg/tool/linustatus infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linux_amd64/vet /usr/bin/git k/gh-aw/gh-aw/pkgh (http block)
  • https://api.github.com/repos/azure/login/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.1/x64/bin/node /usr/bin/git -bool -buildtags /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git --show-toplevel -tests /usr/bin/git git (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linu^remote\..*\.gh-resolved$ bject.type] | @tsv -bool -buildtags /usr/bin/git git rev-�� --show-toplevel git /usr/bin/gh /tmp/gh-aw-test-infocmp l /usr/bin/git gh (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv xterm-color ache/go/1.25.8/x64/pkg/tool/linuremote2 /usr/bin/infocmp RequiresMinInteggh actions/setup/jsapi (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv f/tags/v999.999.999 remote.origin.url sv on&#39; --ignore-patgit (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created &gt;=2026-04-28 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created &gt;=2026-04-05 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created &gt;=2026-02-04 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name atch-workflow-ref-error 64/pkg/tool/linux_amd64/compile son (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 --local 64/pkg/tool/linux_amd64/compile user.email (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name --local 64/pkg/tool/linux_amd64/vet credential.helpegit (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 atch-workflow-ref-error ionpins.test son (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1234567890
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, 86064392/001&#39; 86064392/001&#39; (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name --local 64/pkg/tool/linux_amd64/vet son (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 atch-workflow-ref-error 64/pkg/tool/linux_amd64/vet son (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name atch-workflow-ref-error 64/pkg/tool/linux_amd64/vet credential.usern/usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 --local ache/go/1.25.8/x64/pkg/tool/linux_amd64/link user.email (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name atch-workflow-ref-error 64/pkg/tool/linux_amd64/compile user.name (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 --local ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile user.name (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name atch-workflow-ref-error 64/pkg/tool/linux_amd64/link credential.userngit (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 --local 64/pkg/tool/linux_amd64/vet user.email (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name atch-workflow-ref-error 64/pkg/tool/linux_amd64/compile user.name (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 --local 64/pkg/tool/linux_amd64/vet user.email (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path h ../../../.pret.prettierignore (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 (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 (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build2884368260/b404/cli.test /tmp/go-build2884368260/b404/cli.test -test.testlogfile=/tmp/go-build2884368260/b404/testlog.txt -test.paniconexit0 -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git /tmp/compile-alldu rev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/gh (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, .object.type] | @tsv 1636-8279/test-add-source-path-1726640627/.github/workflows user.name .cfg (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-path ../../../.pr**/*.json (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-path ../../../.pr**/*.json (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-p--detach (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-path ../../../.pr**/*.json (http block)
  • https://api.github.com/repos/google-github-actions/auth/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel node /usr/bin/git /tmp/TestHashCongit (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, .object.type] | @tsv /ref/tags/v9.0.0 user.name sv (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 ignore (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/git (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state ache/node/24.14.1/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-v copilot.originalgit (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 h ../../../.pret.prettierignore (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 133259470/.github/workflows user.email e_modules/.bin/node (http block)

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

@pelikhan pelikhan merged commit db92a84 into main May 5, 2026
@pelikhan pelikhan deleted the copilot/fix-dispatch-workflow-ref-error branch May 5, 2026 22:36
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.

Bug: dispatch-workflow receives job.workflow_sha as target-ref and fails with No ref found

3 participants