From 8fe64eb987e74ee64e347145d795a60ce7b99e02 Mon Sep 17 00:00:00 2001 From: bigboateng Date: Tue, 28 Jul 2026 12:21:54 +0100 Subject: [PATCH] keep publisher App permissions minimal --- .github/workflows/sync-upstream.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/sync-upstream.yml b/.github/workflows/sync-upstream.yml index 65c7828..15da91d 100644 --- a/.github/workflows/sync-upstream.yml +++ b/.github/workflows/sync-upstream.yml @@ -112,10 +112,5 @@ jobs: pr_url="$existing" echo "Updated existing PR: $existing" fi - required_checks="$(gh api "repos/operatorstack/pitot/branches/main/protection/required_status_checks" --jq '(.contexts // []) + ([.checks[]?.context] // []) | unique | length')" - if [[ "$required_checks" -lt 1 ]]; then - echo "BLOCKED: main has no required status checks; refusing unsafe auto-merge." >&2 - exit 1 - fi gh pr merge "$pr_url" --auto --squash echo "Native auto-merge requested; branch protection owns merge eligibility."