-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
area:configurationRelates to configuration optionsRelates to configuration optionsgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codekind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorreleased
Description
Problem
continue-agents.yml doesn't set GH_TOKEN in the "Run agent" step. Agents using gh CLI fail:
Cannot access PR information - missing GH_TOKEN environment variable for GitHub CLI authentication.
Fix
- name: Run agent
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GH_TOKEN: ${{ github.token }} # Add thisSecurity Note
This grants agents access to github.token. Users should understand agents can perform any action the token permissions allow. Use at your own risk.
Evidence
https://github.com/bdougie/contributor.info/actions/runs/20937945685/job/60164997846
Metadata
Metadata
Assignees
Labels
area:configurationRelates to configuration optionsRelates to configuration optionsgithub_actionsPull requests that update GitHub Actions codePull requests that update GitHub Actions codekind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorreleased
Type
Projects
Status
Done