Skip to content

Fix Issue Triage Copilot startup - #56079

Merged
nagilson merged 3 commits into
dotnet:mainfrom
marcpopMSFT:marcpopmsft-fix-issue-triage-workflow
Sep 9, 2026
Merged

nagilson merged 3 commits into
dotnet:mainfrom
marcpopMSFT:marcpopmsft-fix-issue-triage-workflow

Conversation

@marcpopMSFT

Copy link
Copy Markdown
Member

🤖 Issue Triage now passes activation after #56004, but its generated workflow still invokes Copilot from /usr/local/bin/copilot even though the setup action installs it in the runner tool cache and exposes it through PATH. This causes the workflow to fail with ENOENT before 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
  • Confirmed the generated output is idempotent
  • Confirmed both Copilot invocations use the staged executable and no /usr/local/bin/copilot references remain

actionlint was not run because Docker is unavailable in the local environment.

Fixes: #56014

Copilot AI lite review requested due to automatic review settings September 1, 2026 18:20
@azure-pipelines

Copy link
Copy Markdown
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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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-aw v0.86.2, including staging the Copilot CLI under ${RUNNER_TEMP}/gh-aw/bin/copilot for execution.
  • Adds workflow-level DOTNET_CLI_TELEMETRY_SESSIONID to 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

Comment thread .github/workflows/issue-triage.lock.yml Resolved
Comment thread .github/workflows/issue-triage.lock.yml Resolved

@nagilson nagilson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@nagilson

nagilson commented Sep 8, 2026

Copy link
Copy Markdown
Member

@nagilson
nagilson enabled auto-merge September 8, 2026 16:28
@nagilson
nagilson requested a review from a team September 8, 2026 16:29
nagilson added a commit to nagilson/sdk that referenced this pull request Sep 8, 2026
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
marcpopMSFT and others added 3 commits September 8, 2026 16:49
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
@marcpopMSFT
marcpopMSFT force-pushed the marcpopmsft-fix-issue-triage-workflow branch from a2e1261 to 3254e0b Compare September 8, 2026 23:52
@nagilson
nagilson merged commit e6a4e64 into dotnet:main Sep 9, 2026
14 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 10, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 3254e0b1 Deployed Sep 9, 2026 by nagilson via pre_activation #3941
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.

Issue Triage Workflow failing

4 participants