Skip to content

Revert "fix(auth): fall back to GitHub App installation token when user has no OAuth"#35

Merged
genisd merged 3 commits into
gynzyfrom
revert-34-fix/app-token-retrieval
May 21, 2026
Merged

Revert "fix(auth): fall back to GitHub App installation token when user has no OAuth"#35
genisd merged 3 commits into
gynzyfrom
revert-34-fix/app-token-retrieval

Conversation

@genisd

@genisd genisd commented May 21, 2026

Copy link
Copy Markdown
Member

Reverts #34

genisd and others added 3 commits May 7, 2026 09:32
…lbacks

When a user has no stored GitHub OAuth token (e.g., logged in via a
non-GitHub OAuth provider) the cascade fell straight to the PAT,
ignoring a configured GitHub App. Deployments using only an App for
server-side auth therefore failed with "No GitHub token available" on
every task credential request, which broke scheduled tasks at the
agent's first git operation.

Route all user-token fallbacks through getServerToken so the order
becomes: user OAuth → App installation token → workspace PAT → global
PAT. getServerToken now accepts an optional workspaceId so the PAT
fallback still prefers a workspace-scoped GITHUB_TOKEN before global.
@genisd genisd merged commit 20964ca into gynzy May 21, 2026
16 checks passed
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.

2 participants