Fix pre_activation GH CLI auth in efficiency improver workflow#443
Fix pre_activation GH CLI auth in efficiency improver workflow#443Copilot wants to merge 2 commits into
Conversation
Greptile SummaryThis PR fixes a missing authentication context in the
Confidence Score: 5/5Safe to merge — the change is a two-line, targeted addition of a well-scoped token to an already-permissioned job step. The pre_activation job already declares permissions: pull-requests: read, so github.token carries exactly the right scope for gh pr list. The fix is isolated to a single step that previously could not authenticate on schedule events, and no other behavior is changed. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Fix GH CLI auth in pre_activation check ..." | Re-trigger Greptile |
The
pre_activationjob in the Efficiency Improver workflow fails before activation because a scheduled guard step runsgh pr listwithout GH CLI auth context. This PR fixes that auth gap so the pre-activation gate can execute as intended.Root cause (workflow guard step)
.github/workflows/efficiency-improver.lock.yml,pre_activationstepid: checkcalls:gh pr list --repo "$GITHUB_REPOSITORY" ...GH_TOKENenv, causingghto exit with auth error.Change made
pre_activation:Scope
pre_activationauth context.