← Все новости

GitHub Copilot SDK научился работать без пользователя: server-to-server аутентификация через GitHub AppGitHub Copilot SDK can now run without a user: server-to-server authentication via GitHub Apps

Сервисы и агенты на Copilot SDK теперь могут вызывать Copilot от имени организации, используя токен установки GitHub App, а не учётные данные конкретного человека. Расход списывается на организацию и подчиняется её политикам моделей и бюджетам. Функция в публичном превью.Services and agents built on the Copilot SDK can now call Copilot on an organization's behalf using a GitHub App installation token instead of a person's credentials. Usage is billed to the organization and follows its model policies and budgets. The feature is in public preview.

27 октября GitHub открыл публичное превью server-to-server аутентификации для Copilot. Это закрывает давнюю проблему автоматизации: раньше бот или агент на Copilot SDK должен был работать от имени конкретного пользователя — с его токеном, лимитами и счетами.

Как это работает

Теперь у сервиса есть собственная «рабочая» идентичность (workload-owned identity):

  1. Выдайте GitHub App разрешение организации Copilot Requests (только чтение).
  2. Установите приложение в организацию.
  3. Передавайте в Copilot SDK короткоживущий installation access token приложения.

Учёт и контроль

  • Расход списывается на организацию, владеющую установкой.
  • Действуют политики организации по моделям, бюджеты и ограничения трат.
  • В CSV-отчётах по использованию AI появилось поле app_client_id — видно, какое приложение сколько потратило.
  • Отозвать доступ можно, приостановив или удалив приложение.

Кому это нужно

Командам, которые строят на Copilot SDK внутренние агенты, ревью-ботов, CI-интеграции и другие сервисы без «живого» пользователя. Отпадает необходимость хранить персональные токены сотрудников в секретах сервиса, а уход сотрудника больше не ломает автоматизацию.

Что проверить

Если в ваших сервисах сейчас используются персональные токены для Copilot, стоит перевести их на GitHub App. Владельцам организаций — регулярно просматривать, каким приложениям выдано разрешение Copilot Requests.

On October 27 GitHub opened a public preview of server-to-server authentication for Copilot. It fixes a long-standing automation problem: until now, a bot or agent built on the Copilot SDK had to run as a specific user, with that person’s token, limits and billing.

How it works

Services now get their own workload-owned identity:

  1. Grant a GitHub App the read-only Copilot Requests organization permission.
  2. Install the app on the organization.
  3. Pass the app’s short-lived installation access token to the Copilot SDK.

Billing and control

  • Usage is billed to the organization that owns the installation.
  • The organization’s model policies, budgets and spending controls apply.
  • AI usage CSV reports gain an app_client_id field, showing which app spent what.
  • Access can be revoked by suspending or uninstalling the app.

Who needs it

Teams building internal agents, review bots, CI integrations and other services with no human user on the Copilot SDK. There is no longer a need to store employees’ personal tokens in service secrets, and an employee leaving no longer breaks automation.

What to check

If your services currently use personal tokens for Copilot, move them to a GitHub App. Organization owners should regularly review which apps hold the Copilot Requests permission.

Источники