From 9d0b9b3f0496f6871bfddf29b6e2e771543c851f Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Wed, 11 Nov 2026 18:19:33 -0800 Subject: [PATCH] sync: exclude private from CodeRabbit sync Signed-off-by: Patrick Linnane --- .github/actions/sync/shared-config.rb | 2 ++ .github/actions/sync/shared-config_spec.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index bc78f1d9..a2b2dd2f 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -199,10 +199,12 @@ def safe_system(*args) # These repositories don't get the synced CodeRabbit configuration or CODEOWNERS. # brew is excluded for now and homebrew-core and homebrew-cask permanently. # .github is excluded because it can sync changes to other repositories. +# private owns a Security Team-reviewed approval policy and tests the shared CODEOWNERS entries itself. coderabbit_excluded_repositories = %w[ brew homebrew-core homebrew-cask + private .github ].freeze # Each entry is an approved opt-in for that repository. Keep repository names lowercase. diff --git a/.github/actions/sync/shared-config_spec.rb b/.github/actions/sync/shared-config_spec.rb index 4bbcf434..7bb87b94 100644 --- a/.github/actions/sync/shared-config_spec.rb +++ b/.github/actions/sync/shared-config_spec.rb @@ -271,7 +271,7 @@ def synced_contents(path) end end - %w[brew homebrew-core homebrew-cask .github].each do |name| + %w[brew homebrew-core homebrew-cask private .github].each do |name| context "with CodeRabbit excluded for #{name}" do let(:repository) { "coderabbit-excluded/#{name}" }