You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Copilot Agent Session Analysis workflow attempted to run but could not access session data.
Run Details:
Run ID: 19543242051
Workflow: Copilot Session Insights
Date: 2025-11-20
Repository: githubnext/gh-aw
Root Cause
Session data could not be fetched due to one or more of the following reasons:
❌ gh agent-task extension not installed on the runner
❌ Authentication token missing or insufficient permissions
❌ GitHub Enterprise Copilot not enabled for this organization/repository
❌ No agent task sessions available in the time period
Required Setup
To enable this workflow, the following requirements must be met:
1. GitHub Enterprise Copilot Subscription
This workflow requires GitHub Enterprise with Copilot enabled. The gh agent-task CLI extension is only available to Enterprise customers with Copilot access.
Check your access:
Verify GitHub Enterprise subscription
Confirm Copilot is enabled for your organization
Ensure you have access to Copilot agent tasks
2. Install gh agent-task Extension
The workflow runner needs the gh agent-task extension installed:
gh extension install github/agent-task
For GitHub Actions runners:
This extension should be pre-installed in the runner environment
If using self-hosted runners, install manually
Consider adding to runner setup scripts
3. Configure Authentication Token
The workflow needs a Personal Access Token (PAT) with appropriate permissions:
Create a secret named GH_AW_COPILOT_TOKEN:
Generate a Personal Access Token with these scopes:
repo - Full control of private repositories
read:org - Read organization data
workflow - Update GitHub Actions workflows
Add the token as a repository secret:
Go to Settings → Secrets and variables → Actions
Create new secret: GH_AW_COPILOT_TOKEN
Paste the token value
Important: The default GITHUB_TOKEN does NOT have sufficient permissions for agent task API access. A Personal Access Token is required.
4. Verify Access
Test your configuration:
# Set your tokenexport GH_TOKEN=ghp_your_token_here
# List agent tasks
gh agent-task list --limit 5
# View a specific task
gh agent-task view (task-id)
If these commands work, the workflow should succeed on the next run.
Troubleshooting
Extension Not Found
Error: unknown command "agent-task" for "gh"
Solution: Install the extension:
gh extension install github/agent-task
Authentication Failed
Error: 403 Forbidden
Solution:
Verify GH_AW_COPILOT_TOKEN secret is configured
Ensure the token has required scopes
Check if GitHub Enterprise Copilot is enabled
No Sessions Available
Total sessions found: 0
Solution:
This may be expected if no agent tasks have been created
Create some agent tasks and re-run the workflow
Verify agent tasks are being created in the correct repository/organization
Next Steps
Once configuration is complete:
Verify requirements:
GitHub Enterprise Copilot subscription active
gh agent-task extension installed on runner
GH_AW_COPILOT_TOKEN secret configured with valid PAT
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
⚙️ Copilot Agent Session Analysis - Configuration Required
Issue
The Copilot Agent Session Analysis workflow attempted to run but could not access session data.
Run Details:
Root Cause
Session data could not be fetched due to one or more of the following reasons:
Required Setup
To enable this workflow, the following requirements must be met:
1. GitHub Enterprise Copilot Subscription
This workflow requires GitHub Enterprise with Copilot enabled. The
gh agent-taskCLI extension is only available to Enterprise customers with Copilot access.Check your access:
2. Install gh agent-task Extension
The workflow runner needs the
gh agent-taskextension installed:For GitHub Actions runners:
3. Configure Authentication Token
The workflow needs a Personal Access Token (PAT) with appropriate permissions:
Create a secret named
GH_AW_COPILOT_TOKEN:repo- Full control of private repositoriesread:org- Read organization dataworkflow- Update GitHub Actions workflowsGH_AW_COPILOT_TOKENImportant: The default
GITHUB_TOKENdoes NOT have sufficient permissions for agent task API access. A Personal Access Token is required.4. Verify Access
Test your configuration:
If these commands work, the workflow should succeed on the next run.
Troubleshooting
Extension Not Found
Solution: Install the extension:
Authentication Failed
Solution:
GH_AW_COPILOT_TOKENsecret is configuredNo Sessions Available
Solution:
Next Steps
Once configuration is complete:
Verify requirements:
gh agent-taskextension installed on runnerGH_AW_COPILOT_TOKENsecret configured with valid PATTest manually:
gh agent-task listto verify accessRe-run workflow:
Additional Resources
Contact
For questions or assistance with configuration:
This configuration guide was generated automatically because session data was unavailable.
Workflow run: 19543242051
Date: 2025-11-20
Beta Was this translation helpful? Give feedback.
All reactions