Skip to content

Conversation

@ThanhNguyxn
Copy link
Contributor

@ThanhNguyxn ThanhNguyxn commented Jan 13, 2026

Summary

Fixes #9493

The continue-agents.yml reusable workflow doesn't set GH_TOKEN in the "Run agent" step. Agents using the gh CLI fail with:

Cannot access PR information - missing GH_TOKEN environment variable for GitHub CLI authentication.

Changes

Added GH_TOKEN: ${{ github.token }} to the environment variables in the "Run agent" step.

Security Note

This grants agents access to github.token. Users should understand agents can perform any action the token permissions allow.

Evidence


Continue Tasks

Status Task Actions
▶️ Queued Update docs on PR View
▶️ Queued Optimize Website Performance View

Powered by Continue


Summary by cubic

Adds GH_TOKEN to the continue-agents workflow so agents using the gh CLI can authenticate and access PR data (fixes #9493). This uses github.token, so agents can perform actions allowed by its permissions.

Written for commit dd93919. Summary will update on new commits.

Fixes continuedev#9493

Agents using the gh CLI were failing with 'missing GH_TOKEN' error.
This adds the github.token to the Run agent step environment.
@ThanhNguyxn ThanhNguyxn requested a review from a team as a code owner January 13, 2026 04:08
@ThanhNguyxn ThanhNguyxn requested review from RomneyDa and removed request for a team January 13, 2026 04:08
@continue
Copy link
Contributor

continue bot commented Jan 13, 2026

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@continue-staging
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

1 similar comment
@continue-development-app
Copy link

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 13, 2026
@github-actions
Copy link

github-actions bot commented Jan 13, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ThanhNguyxn
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

bdougie added a commit to bdougie/contributor.info that referenced this pull request Jan 14, 2026
Add documentation for using the Continue Agents reusable workflow
now that PR continuedev/continue#9497 adds GH_TOKEN support.

- Create docs/continue-agents-setup.md with setup guide
- Add migration instructions for switching from local workflow
- Update local workflow with TODO to migrate after PR merges

Relates to #1512

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Collaborator

@RomneyDa RomneyDa left a comment

Choose a reason for hiding this comment

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

@ThanhNguyxn thanks for the contribution! confirmed with @bdougie that this is the approach we want to take 👍

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jan 14, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 14, 2026
@RomneyDa RomneyDa merged commit 2a0eccc into continuedev:main Jan 14, 2026
59 of 60 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jan 14, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2026
@sestinj
Copy link
Contributor

sestinj commented Jan 15, 2026

🎉 This PR is included in version 1.39.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Reusable workflow missing GH_TOKEN for gh CLI in agents

3 participants