Repository navigation
fix(BED-10679): model App permissions and branch protection exceptions - #119
Merged
jaredcatkinson merged 1 commit intoNov 25, 2026
Merged
Conversation
eladshamir
approved these changes
Nov 25, 2026
This was referenced Nov 26, 2026
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.
Problem and behavior
GitHub App actors on classic branch protection push and pull-request bypass lists were omitted from the graph. Resolve these actors to the active installation with access to the repository and emit non-traversable
GH_RestrictionsCanPushandGH_BypassPullRequestAllowancesrelationships. When GraphQL returns partial errors on these allowance fields, recover details through a targeted REST request and merge them with successful GraphQL actors; log gaps when recovery fails.Split requested App and granted installation permissions into
permissions_repository,permissions_organization,permissions_enterprise, andpermissions_accountarrays ofpermission:accessvalues, retaining unknown keys inpermissions_unclassified. This replaces the graph's flatpermissionsproperty; raw collection input is unchanged. Update App privilege-zone rules and descriptions to use the scoped properties. Installations also receive non-traversableGH_CanAccessedges to their organization or enterprise target.Traversable installation capability edges and branch capability scopes are deferred to separate work. Force-push App actor recovery remains unsupported: the reproduced GraphQL error has no equivalent actor list in the REST protection response.
Validation
git diff --check.Ticket: BED-10679
Summary by CodeRabbit