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
##[warning]Failed to add campaign label: Resource not accessible by personal access token
```
Root Cause: The GitHub token (GH_AW_PROJECT_GITHUB_TOKEN) lacks sufficient permissions to add labels to issues. The token needs issues: write or broader repository permissions.
Impact: Medium - Campaign labels are not being added to issues, which affects:
Campaign tracking and organization
Issue filtering and reporting
Project automation that relies on labels
View Detailed Error Context
This error occurred in the "Process Project-Related Safe Outputs" step during the Dependabot Burner workflow run. The workflow successfully:
Created project items
Updated project fields
Created status updates
But failed to add campaign labels to 10 different issues due to permission restrictions. The operations themselves completed successfully, but the labeling step was skipped.
##[warning]Field type mismatch for "target_repo": Expected SINGLE_SELECT but found TEXT.
The field was likely created with the wrong type. To fix this, delete the field in the
GitHub Projects UI and let it be recreated, or manually change the field type if supported.
Root Cause: Project fields target_repo and worker_workflow in GitHub Project [claude-test] Pull request not found #144 were created as TEXT fields, but the safe output handler expects them to be SINGLE_SELECT fields. This type mismatch occurs when:
Fields were manually created with the wrong type
The field creation logic changed but existing fields weren't migrated
Different workflows created the same field with different types
Impact: Medium - Field type mismatches cause:
Potential data consistency issues
Inability to use dropdown selection in GitHub Projects UI
Reduced filtering and querying capabilities
Confusion for users expecting different field behavior
View Detailed Error Context
The warnings appeared for each of the 10 update_project operations during the Dependabot Burner run. The operations completed successfully (the handler appears to handle the mismatch gracefully), but the warnings indicate a configuration issue that should be resolved.
Fields affected:
target_repo - Should be SINGLE_SELECT, currently TEXT
worker_workflow - Should be SINGLE_SELECT, currently TEXT
This Week: Implement pre-flight permission validation (Work Item 3)
This Week: Add field type pre-validation (Work Item 4)
Next Audit: Compare results with this baseline to track improvements
Conclusion
The safe output job infrastructure is healthy and operational with a 100% success rate. Two recurring warning patterns have been identified that affect operational quality but do not cause failures. Both issues have clear root causes and straightforward remediation paths.
Key Strengths:
Robust error handling in safe output handlers
Graceful degradation when permissions are insufficient
Clear warning messages with actionable guidance
No data loss or failed operations
Areas for Improvement:
Token permission configuration
Project field type consistency
Pre-flight validation for earlier issue detection
Overall Assessment: ✅ HEALTHY - System is stable and reliable, with minor configuration issues to address.
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.
-
Executive Summary
Status: All safe output jobs completed successfully, but 2 recurring warning patterns need attention to improve operational quality.
Safe Output Job Statistics
Error Clusters
While no jobs failed completely, two recurring warning patterns were identified that affect operational quality:
Cluster 1: Campaign Label Permission Errors 🔒
update_projectGH_AW_PROJECT_GITHUB_TOKEN) lacks sufficient permissions to add labels to issues. The token needsissues: writeor broader repository permissions.View Detailed Error Context
This error occurred in the "Process Project-Related Safe Outputs" step during the Dependabot Burner workflow run. The workflow successfully:
But failed to add campaign labels to 10 different issues due to permission restrictions. The operations themselves completed successfully, but the labeling step was skipped.
Location:
/tmp/gh-aw/aw-mcp/logs/run-21496931510/workflow-logs/safe_outputs/6_Process Project-Related Safe Outputs.txtCluster 2: Project Field Type Mismatches ⚙️
target_repo, 10 forworker_workflow)update_projecttarget_repoandworker_workflowin GitHub Project [claude-test] Pull request not found #144 were created as TEXT fields, but the safe output handler expects them to be SINGLE_SELECT fields. This type mismatch occurs when:View Detailed Error Context
The warnings appeared for each of the 10
update_projectoperations during the Dependabot Burner run. The operations completed successfully (the handler appears to handle the mismatch gracefully), but the warnings indicate a configuration issue that should be resolved.Fields affected:
target_repo- Should be SINGLE_SELECT, currently TEXTworker_workflow- Should be SINGLE_SELECT, currently TEXTProject: https://github.com/orgs/githubnext/projects/144
Root Cause Analysis
Permission-Related Issues
Campaign Label Failures:
GH_AW_PROJECT_GITHUB_TOKENenvironment variable contains a token with insufficient permissionsissues: writescopeConfiguration Issues
Field Type Mismatches:
update_projecthandler expects certain fields to be SINGLE_SELECT type for dropdown functionalityRecommendations
Critical Issues (Immediate Action Required)
None - all safe output jobs are completing successfully.
High Priority Issues
1. Grant Label Management Permissions to Project Token 🔑
issues: writepermissionGH_AW_PROJECT_GITHUB_TOKENsecretissues: writescope (or use a GitHub App with appropriate permissions)update_projectoperations that attempt to add campaign labels2. Fix Project Field Types for target_repo and worker_workflow 📋
target_repofieldworker_workflowfieldupdate_projectoperations that set these fieldsProcess Improvements
Medium Priority Enhancements
1. Add Field Type Pre-Validation 🔍
update_projectoperations2. Implement Token Permission Validation 🛡️
3. Create Field Type Migration Tool 🔧
Work Item Plans
Work Item 1: Grant Label Permissions to GitHub Token
GH_AW_PROJECT_GITHUB_TOKENto include permissions for label managementissues: writescope or equivalent GitHub App permissionWork Item 2: Fix GitHub Project Field Types
target_repoandworker_workflowin Project [claude-test] Pull request not found #144target_repoandworker_workfloware SINGLE_SELECT typetarget_repofieldworker_workflowfieldupdate_projectto recreate fieldsWork Item 3: Add Pre-Flight Permission Validation
actions/safe_output_project_handler_manager.cjs(or similar)Work Item 4: Add Field Type Pre-Validation
update_projecthandler to query field definitionsHistorical Context
Trends: This is the first Safe Output Health audit, so no historical trends are available yet.
Baseline Established:
Future Monitoring: Subsequent audits will track:
Metrics and KPIs
update_project(10 executions)Active Workflows Using Safe Outputs
The following workflows successfully used safe output jobs during this period:
Security Guard Agent 🛡️ (2 runs)
noop(security review summaries)Dependabot Burner (1 run)
create_issue,update_project,create_project_status_updateDaily CLI Performance Agent (1 run)
Plan Command (1 run)
Discussion Task Miner - Code Quality Improvement Agent (1 run)
Instructions Janitor (1 run)
Next Steps
GH_AW_PROJECT_GITHUB_TOKENpermissions (Work Item 1)Conclusion
The safe output job infrastructure is healthy and operational with a 100% success rate. Two recurring warning patterns have been identified that affect operational quality but do not cause failures. Both issues have clear root causes and straightforward remediation paths.
Key Strengths:
Areas for Improvement:
Overall Assessment: ✅ HEALTHY - System is stable and reliable, with minor configuration issues to address.
References:
Beta Was this translation helpful? Give feedback.
All reactions