From 7cc89aa52c21d1f66f764d4ff61a3eebdb3432a0 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Tue, 17 Nov 2026 09:59:19 -0700 Subject: [PATCH 1/3] Name the app that reports each required check ASF Infra refused the ruleset update with "Invalid rule 'required_status_checks': Invalid parameter required_status_checks: Invalid integration ids". Each required check now names the GitHub Actions app (app_slug: github-actions), which reports all of them, CodeQL included. --- .asf.yaml | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index 97833973a..76c36dd37 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -21,15 +21,24 @@ github: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head require_last_push_approval: true + # checks reported by GitHub Actions workflows (CodeQL included) required_status_checks: - - "Build+Test on Linux/JDK 21" - - "Build+Test on Linux/JDK 25" - - "License headers" - - "UI tests (db)" - - "UI tests (db-oidc)" - - "UI tests (oidc)" - - "Analyze (java)" - - "Analyze (javascript)" + - name: "Build+Test on Linux/JDK 21" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 25" + app_slug: "github-actions" + - name: "License headers" + app_slug: "github-actions" + - name: "UI tests (db)" + app_slug: "github-actions" + - name: "UI tests (db-oidc)" + app_slug: "github-actions" + - name: "UI tests (oidc)" + app_slug: "github-actions" + - name: "Analyze (java)" + app_slug: "github-actions" + - name: "Analyze (javascript)" + app_slug: "github-actions" - name: "6.1.x Branch Protection" type: branch branches: @@ -44,10 +53,17 @@ github: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head require_last_push_approval: true + # checks reported by GitHub Actions workflows (CodeQL included) required_status_checks: - - "Build+Test on Linux/JDK 11" - - "Build+Test on Linux/JDK 17" - - "Build+Test on Linux/JDK 21" - - "Build+Test on Linux/JDK 25" - - "Analyze (java)" - - "Analyze (javascript)" + - name: "Build+Test on Linux/JDK 11" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 17" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 21" + app_slug: "github-actions" + - name: "Build+Test on Linux/JDK 25" + app_slug: "github-actions" + - name: "Analyze (java)" + app_slug: "github-actions" + - name: "Analyze (javascript)" + app_slug: "github-actions" From d7995cbc561cda25116a26e2fe606cfabd837640 Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Tue, 17 Nov 2026 20:01:22 -0700 Subject: [PATCH 2/3] Give release branches their own ruleset without required checks The default branch ruleset also covered release/* and rel/*, but no workflow runs on pull requests to those branches, so a pull request there could never get the required checks. They now have their own ruleset that keeps the deletion and force-push protection and the review rule, without required status checks. --- .asf.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.asf.yaml b/.asf.yaml index 76c36dd37..6c4c4a348 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -10,8 +10,6 @@ github: branches: includes: - "~DEFAULT_BRANCH" - - "release/*" - - "rel/*" excludes: [] bypass_teams: - root @@ -39,6 +37,23 @@ github: app_slug: "github-actions" - name: "Analyze (javascript)" app_slug: "github-actions" + # no workflow runs on pull requests to release branches, so requiring + # checks there would block every merge + - name: "Release Branch Protection" + type: branch + branches: + includes: + - "release/*" + - "rel/*" + excludes: [] + bypass_teams: + - root + restrict_deletion: true + restrict_force_push: true + required_pull_request_reviews: + required_approving_review_count: 1 + # the approval has to come after the last push, so it covers the head + require_last_push_approval: true - name: "6.1.x Branch Protection" type: branch branches: From e8cc9c67b924ef7094c7b533c49c4b454c7d51be Mon Sep 17 00:00:00 2001 From: Matt Raible Date: Tue, 17 Nov 2026 21:54:54 -0700 Subject: [PATCH 3/3] Require review conversations to be resolved before a merge --- .asf.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.asf.yaml b/.asf.yaml index 6c4c4a348..ff16af4b6 100644 --- a/.asf.yaml +++ b/.asf.yaml @@ -15,6 +15,8 @@ github: - root restrict_deletion: true restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true required_pull_request_reviews: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head @@ -50,6 +52,8 @@ github: - root restrict_deletion: true restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true required_pull_request_reviews: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head @@ -64,6 +68,8 @@ github: - root restrict_deletion: true restrict_force_push: true + # every review conversation has to be resolved before a merge + required_conversation_resolution: true required_pull_request_reviews: required_approving_review_count: 1 # the approval has to come after the last push, so it covers the head