Repository navigation
Conversation
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
…for push/sync Co-authored-by: lindluni <9400927+lindluni@users.noreply.github.com>
Co-authored-by: lindluni <9400927+lindluni@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
End-to-end verification of the installation-token authentication path remains outstanding.
0 open findings
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
There was a problem hiding this comment.
🟢 Approval recommended
The opt-in flow preserves existing authentication behavior, with focused tests and no identified blocking issues.
0 open findings
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Copilot
AI
changed the title
[WIP] Add GitHub App installation token authentication for push/sync
Support GitHub App installation tokens for Oct 8, 2026
push/sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
push/synccallGET /userbefore anything else. GitHub App installation tokens (ghs_*) have no user context, so that call returns403 Resource not accessible by integrationand the tool can't be used with an App. This PR adds an opt-in--github-app-authflag, following the approach in actions/actions-sync#177.Behavior with
--github-app-authGET /user, organization creation and Actions admin impersonation, since all three need a user.POST /orgs/{owner}/repos(or updates it viaPATCH) in the owner from--destination-repository. That organization must already exist and have the App installed.--actions-admin-useris ignored.x-access-tokenas the basic-auth username.Personal access token path
createRepositoryinto a newgetDestinationOrganizationhelper. Its logic is unchanged; only the return values were adapted.GET /usernow suggests re-running with--github-app-auth.Docs and tests
/api/v3/userhandler that callst.Error. They need it because the test server returns a 404 for unregistered paths without failing the test.Review focus
--actions-admin-user; the README says it is ignored. actions-sync rejects that combination. Doing the same here would needFlags().Changed, because--actions-admin-userhas a default value.