Skip to content

Commit 4207e92

Browse files
authored
Merge pull request #30661 from github/repo-sync
Repo sync
2 parents d8e620f + 3fc7ca0 commit 4207e92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ You can require that changes are successfully deployed to specific environments
5050

5151
When you enable required commit signing on a branch, contributors {% ifversion fpt or ghec %}and bots{% endif %} can only push commits that have been signed and verified to the branch. For more information, see "[AUTOTITLE](/authentication/managing-commit-signature-verification/about-commit-signature-verification)."
5252

53+
Branch protection rules and rulesets behave differently when you create a branch: with rulesets, we check only the commits that aren't accessible from other branches, whereas with branch protection rules, we do not verify signed commits unless you restrict pushes that create matching branches. With both, when you update a branch, we still check all the commits in the specified range, even if a commit is reachable from other branches.
54+
55+
With both methods, we use the `verified_signature?` to confirm if a commit has a valid signature. If not, the update is not accepted.
56+
5357
{% note %}
5458

5559
{% ifversion fpt or ghec %}

0 commit comments

Comments
 (0)