Skip to content

Test: org-level Copilot billing via pull_request + copilot-requests:write#1

Open
JanKrivanek wants to merge 1 commit into
mainfrom
test/org-billing-pull-request
Open

Test: org-level Copilot billing via pull_request + copilot-requests:write#1
JanKrivanek wants to merge 1 commit into
mainfrom
test/org-billing-pull-request

Conversation

@JanKrivanek

Copy link
Copy Markdown
Member

Purpose

Test whether organization-level Copilot billing is enabled for the dotnet
org, per the changelog
Agentic workflows no longer need a personal access token
(2026-06-11).

What this PR does

Adds a single dummy agentic workflow, .github/workflows/org-billing-test.md,
that:

  • Triggers on pull_request (same-repo branch, not a fork), so the job
    receives the normal read-write GITHUB_TOKEN.
  • Declares permissions: copilot-requests: write — the new org-billing
    auth path.
  • Uses no PAT pool / COPILOT_GITHUB_TOKEN — it relies purely on the
    built-in GITHUB_TOKEN so that AI credits are billed to the organization.
  • Posts one confirmation comment on the PR as its only action.

Compiled with gh aw v0.79.8.

What to observe

  • If org-level billing is enabled: the Org Billing Test workflow's agent
    job authenticates via the Actions token and posts a confirmation comment.
  • If it is NOT enabled: the agent job fails to authenticate / bill.

Cleanup

This is a throwaway test PR — close without merging once the billing behavior
has been observed.

Triggers on same-repo pull_request using the built-in GITHUB_TOKEN with copilot-requests: write (no PAT pool), to verify organization-level Copilot billing is enabled for the dotnet org per github.blog/changelog/2026-06-11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant