The Copilot integration and sample validation workflows grant copilot-requests: write, but expose the built-in Actions token through COPILOT_GITHUB_TOKEN. Copilot CLI treats that variable as a user/PAT credential and can fail with Failed to fetch PAT user login (401): Bad credentials.
Use the native GITHUB_TOKEN environment variable for Actions authentication, while preserving COPILOT_GITHUB_TOKEN support for local user-token integration testing. Update both Python and .NET integration-test guards to recognize either supported environment.
The Copilot integration and sample validation workflows grant
copilot-requests: write, but expose the built-in Actions token throughCOPILOT_GITHUB_TOKEN. Copilot CLI treats that variable as a user/PAT credential and can fail withFailed to fetch PAT user login (401): Bad credentials.Use the native
GITHUB_TOKENenvironment variable for Actions authentication, while preservingCOPILOT_GITHUB_TOKENsupport for local user-token integration testing. Update both Python and .NET integration-test guards to recognize either supported environment.