Fix Copilot setup bootstrap ordering and checkout permissions#66
Conversation
|
@copilot what is using or requesting GITHUB_TOKEN. |
It’s the GitHub Actions job runtime itself, not the MCP secret.
So the auth failure I surfaced was: the Copilot/Actions job environment had an invalid job-scoped |
The Copilot Actions job was bootstrapping the environment in the wrong order:
pnpm installran before the repository existed in the agent workspace. The failure also exposed a separate auth issue: the session token presented asGITHUB_TOKENwas invalid, surfacing as the job's authorization error.Bootstrap ordering
Workflow permissions
contents: readpermissions required byactions/checkoutin the Copilot setup job.Dependency install behavior
pnpm install --frozen-lockfile.Workflow operability
Auth signal surfaced
GITHUB_TOKEN.