Skip to content

Fix Repo Assist workflow: switch to copilot-requests auth and add checkout config - #32

Closed
shanselman with Copilot wants to merge 3 commits into
masterfrom
copilot/aw-repo-assist-fix
Closed

Fix Repo Assist workflow: switch to copilot-requests auth and add checkout config#32
shanselman with Copilot wants to merge 3 commits into
masterfrom
copilot/aw-repo-assist-fix

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Repo Assist has failed on every run since it was added — the workflow requires a COPILOT_GITHUB_TOKEN secret that was never configured in this repository.

Changes

  • Enable copilot-requests feature flag — uses the built-in GitHub Actions token (${{ github.token }}) for Copilot authentication, eliminating the need for a separate secret
  • Add checkout configurationfetch: ["*"] + fetch-depth: 0 so the agent can access all PR branches, required by push-to-pull-request-branch: target: "*"
  • Recompile lock filegh aw compile --strict passes with 0 errors, 0 warnings
features:
  copilot-requests: true

checkout:
  fetch: ["*"]
  fetch-depth: 0

Key compiled lock file changes: COPILOT_GITHUB_TOKEN switches from ${{ secrets.COPILOT_GITHUB_TOKEN }}${{ github.token }}, copilot-requests: write permission added, secret validation step removed, S2STOKENS: true env injected.

Copilot AI linked an issue Jun 8, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits June 8, 2026 06:43
Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
…st workflow

- Add `features: copilot-requests: true` to use GitHub Actions token for
  Copilot authentication instead of requiring a separate COPILOT_GITHUB_TOKEN
  secret, which resolves the consistent workflow failures
- Add `checkout: fetch: ["*"], fetch-depth: 0` to fetch all remote branches,
  fixing the push-to-pull-request-branch target wildcard requirement
- Recompile lock file with `gh aw compile --strict` (0 errors, 0 warnings)

Co-authored-by: shanselman <2892+shanselman@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug agentic workflow failure for Repo Assist Fix Repo Assist workflow: switch to copilot-requests auth and add checkout config Jun 8, 2026
Copilot AI requested a review from shanselman June 8, 2026 06:45
@shanselman
shanselman marked this pull request as ready for review June 8, 2026 06:52
@github-actions github-actions Bot mentioned this pull request Jun 8, 2026
18 tasks
@shanselman

Copy link
Copy Markdown
Owner

Thanks for putting together the original Repo Assist auth fix. This work directly informed the current upgrade path, but PR #33 now supersedes it with the newer gh-aw layout and v0.77.5 compiled workflow changes, so I’m closing this one in favor of #33.

@shanselman shanselman closed this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Repo Assist failed

2 participants