Skip to content

Document PR triage workflow failures due to missing COPILOT_CLI_TOKEN#550

Merged
Mossaka merged 1 commit intomainfrom
copilot/debug-pr-triage-workflow
Nov 14, 2025
Merged

Document PR triage workflow failures due to missing COPILOT_CLI_TOKEN#550
Mossaka merged 1 commit intomainfrom
copilot/debug-pr-triage-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 12, 2025

The PR triage workflow has failed on all recent runs due to a missing COPILOT_CLI_TOKEN repository secret. This investigation documents the root cause and provides remediation options.

Analysis

Examined 9 consecutive workflow failures using GitHub API:

  • All runs failed at "Validate COPILOT_CLI_TOKEN secret" step
  • Workflow requires this secret for GitHub Copilot CLI (line 719-726 of pr-triage.lock.yml)
  • Without it, AI-powered PR analysis and automatic labeling is non-functional

Root Cause

- name: Validate COPILOT_CLI_TOKEN secret
  run: |
    if [ -z "$COPILOT_CLI_TOKEN" ]; then
      echo "Error: COPILOT_CLI_TOKEN secret is not set"
      exit 1
    fi
  env:
    COPILOT_CLI_TOKEN: ${{ secrets.COPILOT_CLI_TOKEN }}

The workflow exits with code 1 when the secret is unset, causing subsequent jobs (detection, add_labels, missing_tool) to be skipped.

Remediation Options

Option 1: Configure COPILOT_CLI_TOKEN in repository secrets (enables full functionality)

Option 2: Add workflow-level conditional to skip when secret unavailable:

if: secrets.COPILOT_CLI_TOKEN != ''

Option 3: Convert validation step to set output flag instead of failing, allow graceful degradation

Impact

  • PR triage completely non-functional since Oct 22, 2025
  • Manual PR labeling required
  • No AI-assisted analysis of incoming pull requests

Comprehensive diagnostic report created at /tmp/pr-triage-workflow-diagnosis.md with detailed analysis and implementation guidance.

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/repos/microsoft/wassette/actions/jobs/53711951364/logs
    • Triggering command: curl -s -H Accept: application/vnd.github+json -H Authorization: Bearer REDACTED (http block)

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

Original prompt

Examine the last few runs of PR triage workflow using the gh CLI and figure out why it didn't work


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Investigate failures in PR triage workflow using gh CLI Document PR triage workflow failures due to missing COPILOT_CLI_TOKEN Nov 12, 2025
Copilot AI requested a review from Mossaka November 12, 2025 06:52
@Mossaka Mossaka marked this pull request as ready for review November 14, 2025 04:59
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
@Mossaka Mossaka force-pushed the copilot/debug-pr-triage-workflow branch from b467e49 to edb1048 Compare November 14, 2025 04:59
@Mossaka Mossaka merged commit 65dd374 into main Nov 14, 2025
15 checks passed
@Mossaka Mossaka deleted the copilot/debug-pr-triage-workflow branch November 14, 2025 04:59
Mossaka added a commit to Mossaka/wassette that referenced this pull request Feb 2, 2026
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
Co-authored-by: Jiaxiao Zhou <duibao55328@gmail.com>
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.

2 participants