cd /news/ai-tools/copilot-cli-no-longer-needs-a-person… · home topics ai-tools article
[ARTICLE · art-48550] src=github.blog ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Copilot CLI no longer needs a personal access token in GitHub Actions

GitHub Copilot CLI can now run in GitHub Actions using the built-in GITHUB_TOKEN, eliminating the need for personal access tokens. AI credits consumed by the CLI are billed directly to the organization when used in organization-owned repositories. This reduces security risks and simplifies automation at scale.

read1 min views1 publishedJul 2, 2026
Copilot CLI no longer needs a personal access token in GitHub Actions
Image: GitHub Changelog

You can now run GitHub Copilot CLI in GitHub Actions using the built-in GITHUB_TOKEN .

This means that you no longer need to create and store a personal access token (PAT), eliminating the operational and security risks of managing long-lived PATs for automations at scale.

When you run Copilot CLI with the Actions token in an organization-owned repository, AI credits consumed by the CLI are billed directly to the organization.

Configuring organization billing for Copilot CLI in GitHub Actions In order to use this feature, you must enable the “Allow use of Copilot CLI billed to the organization” Copilot policy. This is enabled by default if you have the existing “Copilot CLI” policy enabled.

Once enabled, workflows just need the copilot-requests: write

permission and can authenticate with the workflow’s built-in GITHUB_TOKEN

. No additional secrets are required.

To learn more, see “Using Copilot CLI in GitHub Actions with GITHUB_TOKEN” in the GitHub Docs. Note: You must be on a recent version of Copilot CLI. Update with

copilot update

, or reinstall the latest version withnpm install -g @github/copilot

.

Controlling cost while billing to your organization User-level budgets are not considered when billing directly to the organization because the cost is not attributed to a user. There are multiple ways to manage spend when using this billing method:

  • Configure cost centersfor the relevant organizations. Cost centers allow cost attribution to groups of organizations, and budgets can be applied to cost centers. - Monitor Copilot usage from your organization’s billing and usage dashboards to track consumption over time.
  • Set a session limitto configure a maximum amount of AI credits that will be used by a workflow.
── more in #ai-tools 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/copilot-cli-no-longe…] indexed:0 read:1min 2026-07-02 ·