Skip to content

ci(sync): replace branch-protection-bot with github-script - #20

Open
mnencia wants to merge 1 commit into
mainfrom
dev/branch-protection-fix
Open

ci(sync): replace branch-protection-bot with github-script#20
mnencia wants to merge 1 commit into
mainfrom
dev/branch-protection-fix

Conversation

@mnencia

@mnencia mnencia commented Sep 10, 2026

Copy link
Copy Markdown
Member

The benjefferies/branch-protection-bot Docker action is not maintained anymore, its build requires a long startup on every run, and it currently fails because it's built on Bullseye which recently went EOL,
Replace it with actions/github-script (Node, no image pull) calling the same enforce_admins REST endpoints.

The restore step now runs only when the disable step recorded enforce_admins as enabled, so the protection is restored even if the protected step failed and is not toggled when it was off to begin with.

benjefferies/branch-protection-bot is unmaintained and unpinned by
digest. Use actions/github-script with the GitHub API directly to
toggle the "include administrators" branch protection around the
sync push, matching the approach already merged in
cloudnative-pg/postgis-containers#139.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@mnencia
mnencia requested a review from a team as a code owner September 10, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant