Skip to content

[comp] Production Deploy#3372

Merged
tofikwest merged 2 commits into
releasefrom
main
Jul 7, 2026
Merged

[comp] Production Deploy#3372
tofikwest merged 2 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Switches the github-app integration to the standard GitHub OAuth authorize flow to fix failed reconnects and ensure proper environment routing, and adds a safeguard to block connection if the App isn’t installed.

  • Bug Fixes

    • Use https://github.com/login/oauth/authorize for github-app (always returns an OAuth code and honors redirect_uri).
    • After token exchange, check /user/installations; if none, stop and redirect with error=github_app_not_installed.
  • Refactors

    • Removed appInstallFlow and the {APP_SLUG} setting from the github-app manifest and schema; deleted the install-URL branch in the controller; updated tests.

Written for commit 51ab7b1. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 2 commits July 7, 2026 21:27
…stall URL (CS-710) (#3371)

* fix(integrations): connect GitHub App via OAuth authorize URL, not install URL

The install URL (github.com/apps/{slug}/installations/new) dead-ends on GitHub's
"manage" page — returning no OAuth code — for any org that already has the App
installed, so the connection could never complete on reconnect. Confirmed
against GitHub docs + community reports.

Switch github-app to the standard OAuth authorize flow
(github.com/login/oauth/authorize with the App's client id). This returns a
`code` whether or not the App is already installed, shows "Install & Authorize"
for first-time users, and honors redirect_uri (so multiple callback URLs on one
App route per environment). github-app is now a plain OAuth2 integration whose
credentials happen to belong to a read-only GitHub App.

Removes the now-obsolete install-flow machinery: the `appInstallFlow` config
flag, the install-URL branch + placeholder guard in the controller, and the
`{APP_SLUG}` app-slug setting (the authorize URL needs no slug). Also drops the
unverified installation_id persistence (the authorize flow returns no
installation_id anyway). No change to the legacy `github` integration.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XyttkYNbkdYRp7DBKNuFVH

* fix(integrations): verify GitHub App is installed before completing connect

GitHub App user authorization and App installation are separate steps: a
first-time user can complete login/oauth/authorize WITHOUT installing the App,
producing a token that can't read any repositories — a "connected but unusable"
integration (flagged by cubic).

After the OAuth exchange for github-app, verify the user actually has an
installation (GET /user/installations). If GitHub definitively reports none,
stop before activating the connection and redirect with a clear
"github_app_not_installed" message telling the user to install the App and
reconnect. Fails open on any API error/uncertainty so a valid connection is
never blocked by a transient failure.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XyttkYNbkdYRp7DBKNuFVH

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Jul 7, 2026 10:18pm
comp-framework-editor (staging) Ready Ready Preview, Comment Jul 7, 2026 10:18pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal (staging) Skipped Skipped Jul 7, 2026 10:18pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit e0b25cf into release Jul 7, 2026
13 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.99.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants