Skip to content

fix: retry installation auth for regional GitHub App events#5123

Open
bogdankrasko wants to merge 1 commit into
github-aws-runners:mainfrom
bogdankrasko:pr/bk/add-regional-app-installation-retry
Open

fix: retry installation auth for regional GitHub App events#5123
bogdankrasko wants to merge 1 commit into
github-aws-runners:mainfrom
bogdankrasko:pr/bk/add-regional-app-installation-retry

Conversation

@bogdankrasko
Copy link
Copy Markdown

Description

Handle webhook events whose installationId belongs to a different GitHub App by retrying installation authentication after a 404.

Apply the fallback in both the shared Octokit helper and the scale-up flow by re-resolving the installation ID for the current app before retrying auth.

Preserve existing behavior for installationId=0 and non-404 errors, and add regression tests covering the mismatched installation/app scenario.

Test Plan

Follow the instructions in #5099 to deploy runners to multiple regions, and set the GitHub App secrets in SSM so that each region has its own GitHub App ID.

Related Issues

Handle webhook events whose installationId belongs to a different GitHub App by retrying installation authentication after a 404.

Apply the fallback in both the shared Octokit helper and the scale-up flow by re-resolving the installation ID for the current app before retrying auth.

Preserve existing behavior for installationId=0 and non-404 errors, and add regression tests covering the mismatched installation/app scenario.
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