Skip to content

Fix one-click GitHub App: omit hook_attributes (manifest was invalid) (v0.189.0)#317

Merged
vikasprogrammer merged 1 commit into
mainfrom
feat/gh-manifest-hook-fix
Jul 14, 2026
Merged

Fix one-click GitHub App: omit hook_attributes (manifest was invalid) (v0.189.0)#317
vikasprogrammer merged 1 commit into
mainfrom
feat/gh-manifest-hook-fix

Conversation

@vikasprogrammer

Copy link
Copy Markdown
Owner

Root cause

The one-click "Create GitHub App" flow never worked — every attempt failed on GitHub with:

Invalid GitHub App configuration … Error "url" wasn't supplied.

…forcing manual App creation every time (instawp + instapods both hit this). My earlier "cross-site POST redirect" guess was wrong.

The real cause: our manifest sent hook_attributes: { active: false } to disable the webhook. But per GitHub's manifest docs, hook_attributes.url is required whenever hook_attributes is present (even with active:false). So GitHub rejected the whole manifest — and the "url" it meant was the webhook url, not our top-level url (which was present all along).

Fix

Omit hook_attributes entirely. An App with no hook_attributes = no webhook (exactly what we want) and no required webhook url. One line removed from githubAppManifest.

Testing

  • scripts/github-per-member-test.cjs79/79 (assertion updated: manifest omits hook_attributes + carries the required top-level url).
  • Confirmed against the official GitHub manifest docs; typecheck + governance (68/68) green.

🤖 Generated with Claude Code

…lid (v0.189.0)

The one-click "Create GitHub App" flow always failed with GitHub's "Invalid
GitHub App configuration … 'url' wasn't supplied" (forcing manual creation).
Root cause: the manifest included hook_attributes:{active:false} to turn off
the webhook, but GitHub requires hook_attributes.url whenever the object is
present — so it rejected the manifest, and the missing "url" was the WEBHOOK
url, not our (present) top-level url. Fix: omit hook_attributes entirely = an
App with no webhook, no required url.

Confirmed against GitHub's manifest docs. Test 79/79.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vikasprogrammer vikasprogrammer merged commit faa447c into main Jul 14, 2026
1 check passed
@vikasprogrammer vikasprogrammer deleted the feat/gh-manifest-hook-fix branch July 14, 2026 10:16
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.

1 participant