Answer: For workflows in an organization-owned repository, grant the built-in token permission to make Copilot requests by setting permissions with contents: read and copilot-requests: write, then pass GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} to your application. The organization's Allow use of Copilot CLI billed to the organization policy must be enabled, and this approach needs no GitHub App or stored authentication secret. Status: Confirmed Entry: tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions Revision: 3 Digest: sha256:dc14aebd1616c1e3 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:27:42Z Last changed: 2026-11-19T13:01:28Z (Required policy: — → Allow use of Copilot CLI billed to the organization) Last verified: 2026-11-20T13:07:51Z Next check: 2026-11-21T13:07:51Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Token permission | copilot-requests: write | [1] | 2026-11-20 Contents permission | contents: read | [1] | 2026-11-20 Environment variable | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | [1] | 2026-11-20 Runner | ubuntu-latest | [1] | 2026-11-20 Checkout action | actions/checkout@v6 | [1] | 2026-11-20 Required policy | Allow use of Copilot CLI billed to the organization | [1] | 2026-11-20 Sources: [1] GitHub. "Server-to-server authentication - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-sdk/auth/server-to-server-tokens Role: primary. Accessed: 2026-11-20T13:07:51Z Quote: "permissions: contents: read copilot-requests: write" (Supports: Token permission, Contents permission) Quote: "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" (Supports: Environment variable) Quote: "runs-on: ubuntu-latest" (Supports: Runner) Quote: "uses: actions/checkout@v6" (Supports: Checkout action) Quote: "The organization's Allow use of Copilot CLI billed to the organization policy must be enabled." (Supports: Required policy) Snapshot SHA-256: bfd9827d6b9c0717c0a73d9f70e174e8ed6db868e0169711b7bc6cefa73e4ba3 (captured 2026-11-18T13:02:51Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:02:51Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:07:51Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:07:51Z Last attempt: 2026-11-20T13:07:51Z Notes and limitations: Extracted automatically from a single official source (section "GitHub Actions"). Related: https://latestn.com/tool/github-copilot/integrations/self-host-mcp-registry How do I self-host an MCP registry for GitHub Copilot, including endpoint and CORS requirements? https://latestn.com/tool/github-copilot/integrations/set-default-repository-channel How do I set a default repository for a Slack channel when using GitHub Copilot? https://latestn.com/tool/github-copilot/integrations/set-up-azure-devops-integration How do I set up the Azure DevOps integration in the GitHub Copilot app? https://latestn.com/tool/github-copilot/integrations/reuse-vscode-mcp-config How can I reuse my MCP configuration from Visual Studio Code in GitHub Copilot? https://latestn.com/tool/github-copilot/integrations/sdk-authentication How do I authenticate the GitHub Copilot SDK in my application? https://latestn.com/tool/github-copilot/integrations/sdk-server-to-server-auth How do I set up server-to-server authentication for the GitHub Copilot SDK? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:01:28Z | changed | Required policy: — → Allow use of Copilot CLI billed to the organization | [1] 2026-11-19T13:01:28Z | changed | Checkout action: — → actions/checkout@v6 | [1] 2026-11-19T13:01:28Z | changed | Runner: — → ubuntu-latest | [1] 2026-11-19T13:01:28Z | changed | Environment variable: — → GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | [1] 2026-11-19T13:01:28Z | changed | Contents permission: — → contents: read | [1] 2026-11-19T13:01:28Z | changed | Token permission: — → copilot-requests: write | [1] 2026-11-19T13:01:28Z | changed | required organization policy: Allow use of Copilot CLI billed to the organization → — | [1] 2026-11-19T13:01:28Z | changed | checkout action: actions/checkout@v6 → — | [1] 2026-11-19T13:01:28Z | changed | runner: ubuntu-latest → — | [1] 2026-11-19T13:01:28Z | changed | token environment variable: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} → — | [1] 2026-11-19T13:01:28Z | changed | contents permission: contents: read → — | [1] 2026-11-19T13:01:28Z | changed | copilot-requests permission: copilot-requests: write → — | [1] 2026-11-17T13:25:36Z | changed | required organization policy: — → Allow use of Copilot CLI billed to the organization | [1] 2026-11-17T13:25:36Z | changed | checkout action: — → actions/checkout@v6 | [1] 2026-11-17T13:25:36Z | changed | runner: — → ubuntu-latest | [1] 2026-11-17T13:25:36Z | changed | token environment variable: — → GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | [1] 2026-11-17T13:25:36Z | changed | contents permission: — → contents: read | [1] 2026-11-17T13:25:36Z | changed | copilot-requests permission: — → copilot-requests: write | [1] 2026-11-17T13:25:36Z | changed | Required organization policy: Allow use of Copilot CLI billed to the organization → — | [1] 2026-11-17T13:25:36Z | changed | Token environment variable: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} → — | [1] 2026-11-17T13:25:36Z | changed | Checkout action: actions/checkout@v6 → — | [1] 2026-11-17T13:25:36Z | changed | Runner: ubuntu-latest → — | [1] 2026-11-17T13:25:36Z | changed | Contents permission: contents: read → — | [1] 2026-11-17T13:25:36Z | changed | Token permission: copilot-requests: write → — | [1] 2026-11-13T03:27:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions POST: https://latestn.com/dispute/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure server-to-server authentication for the GitHub Copilot SDK in GitHub Actions? Revision 3, last verified 2026-11-20T13:07:51Z. https://latestn.com/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions (accessed 2026-11-21T09:53:23Z). @misc{LatestN_tool_github_copilot_integrations_sdk_server_to_server_auth_github_actions_r3, title = {How do I configure server-to-server authentication for the GitHub Copilot SDK in GitHub Actions?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions}}, note = {Revision 3; digest sha256:dc14aebd1616c1e3; last verified 2026-11-20T13:07:51Z; accessed 2026-11-21T09:53:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/integrations/sdk-server-to-server-auth-github-actions