Repository navigation
Fix Issue Triage Copilot startup - #56079
Conversation
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This pull request regenerates the Issue Triage agentic workflow to fix Copilot CLI startup failures by ensuring the workflow uses the Copilot executable discovered on PATH (rather than /usr/local/bin/copilot), and updates the workflow inputs/tooling to satisfy stricter validation requirements.
Changes:
- Regenerates the generated workflow lock using
gh-awv0.86.2, including staging the Copilot CLI under${RUNNER_TEMP}/gh-aw/bin/copilotfor execution. - Adds workflow-level
DOTNET_CLI_TELEMETRY_SESSIONIDto preserve CI telemetry correlation. - Updates the source workflow configuration to explicitly disable bash tool access (
tools: bash: []).
File summaries
| File | Description |
|---|---|
| .github/workflows/issue-triage.md | Adds workflow-level telemetry session env var and explicitly disables bash tool access in the gh-aw frontmatter. |
| .github/workflows/issue-triage.lock.yml | Regenerated workflow implementation (updated gh-aw/action/container versions; stages Copilot from PATH; updates prompt/rendering flow; adds telemetry env). |
Review details
Suppressed comments (1)
.github/workflows/issue-triage.lock.yml:541
- The restore step uses the same reduced GH_AW_AGENT_FOLDERS/GH_AW_AGENT_FILES list as the earlier save step. If this workflow runs with a PR checkout, agent config roots like .claude will not be restored from base (unlike other gh-aw workflows here), which can let PR-side agent config affect the run.
- name: Restore agent config folders from base branch
if: steps.checkout-pr.outcome == 'success'
env:
GH_AW_AGENT_FOLDERS: ".agents .github"
GH_AW_AGENT_FILES: "AGENTS.md"
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh"
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Lite
nagilson
left a comment
There was a problem hiding this comment.
Thanks for taking this on! I have some feedback as I think the copilot review and then the AI determined change was the incorrect resolution. If I apply the fix then I cannot approve the PR.
|
I can confirm the latest fixes work with run https://github.com/nagilson/sdk/actions/runs/33931174898 where it triaged nagilson#186. |
Match the strict Bash allowlist established by dotnet#56079 so the CLI proxy and safe output commands remain available. Co-authored-by: Copilot <[email protected]> Copilot-Session: 03a3f92f-9bfc-4c5b-acd2-dc420cb7c59c
Regenerate the workflow with gh-aw v0.86.2 so cached Copilot CLI installs are staged into the agent runtime instead of invoking a missing /usr/local/bin path. Explicitly disable general bash access and add CI telemetry correlation. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 9630882d-78b7-4049-8e5a-4102e6dc0968
Allow only the gh and safeoutputs CLI proxy command families and force a fresh Copilot CLI install while retaining PAT-based inference without copilot-requests: write. Co-authored-by: Copilot <[email protected]> Copilot-Session: 0da8299d-f711-4e6c-b484-2069ef6f27fa
a2e1261 to
3254e0b
Compare
🤖 Issue Triage now passes activation after #56004, but its generated workflow still invokes Copilot from
/usr/local/bin/copiloteven though the setup action installs it in the runner tool cache and exposes it throughPATH. This causes the workflow to fail withENOENTbefore triage can run.This regenerates the workflow with gh-aw v0.86.2, which discovers Copilot on
PATH, stages it under${RUNNER_TEMP}/gh-aw/bin/copilot, and uses that staged executable for both the agent and threat-detection phases. The source workflow also explicitly disables Bash access as required by current strict validation and preserves CI telemetry correlation.Validation:
gh aw compile issue-triage --strict --validate --no-check-update/usr/local/bin/copilotreferences remainactionlintwas not run because Docker is unavailable in the local environment.Fixes: #56014