Skip to main content

Branch Protection: Allow Fork Syncing

The following rule type is available for allowing fork syncing on branches.

stacklok/branch_protection_allow_force_pushes - Whether users can pull changes from upstream when the branch is locked

Ensure that the appropriate setting is enabled for the branch protection rule.

This setting allows users with push access to pull changes from the upstream repository.

For more information, see https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule

Entity

  • repository

Type

  • stacklok/branch_protection_allow_fork_syncing

Rule parameters

The stacklok/branch_protection_allow_fork_syncing rule supports the following parameters:

  • branch (string) - The name of the branch to check. If left empty, the default branch will be used.

Rule definition options

The stacklok/branch_protection_allow_fork_syncing rule supports the following options:

  • allow_fork_syncing (boolean) - Whether users can pull changes from upstream when the branch is locked. Set to true to allow fork syncing. Set to false to prevent fork syncing.