Work around gh-aw cached Copilot path - #19109
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 32c349b4-907d-42e9-aad8-2f0edc267779
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 19109Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 19109" |
There was a problem hiding this comment.
Pull request overview
Adds a targeted gh-aw v0.85.4 workaround so PR documentation agent and threat-detection jobs can locate the cached GitHub Copilot CLI.
Changes:
- Stages the selected CLI at
/usr/local/bin/copilot. - Applies the workaround to both agent execution and threat detection.
- Regenerates the compiled workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/pr-docs-check.md |
Defines the temporary CLI staging workaround. |
.github/workflows/pr-docs-check.lock.yml |
Contains the recompiled workflow changes. |
|
✅ No documentation update needed. Step 5 branch taken: Triggered signals (1): Why this is a false positive: The matched "CLI flag mention" is No documentation changes are needed on |
Description
gh-awv0.85.4 can select a cached GitHub Copilot CLI from the hosted runner toolcache while its generated AWF command still invokes/usr/local/bin/copilot. The mismatch causes the agent or threat-detection job to fail withENOENTbefore producing output.This stages the checksum-verified standalone CLI selected by gh-aw at the path its v0.85.4 harness expects. The agent job stages it after the generated installer. Because threat detection runs on a fresh runner and its extension steps precede the generated installer, that job first invokes the same gh-aw installer and then stages the selected binary. The workaround remains limited to the PR documentation workflow and includes removal guidance for github/gh-aw#50908.
Related:
Validation:
gh aw compile --validate --strictcompleted successfully for all eight workflows..github/aw/actions-lock.jsonis unchanged and the safe-output jobs retaincontents: write.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?