Skip to content

ci: replace branch-protection-bot with actions/github-script - #507

Open
NiccoloFei wants to merge 1 commit into
mainfrom
dev/drop-branch-protection-bot
Open

ci: replace branch-protection-bot with actions/github-script#507
NiccoloFei wants to merge 1 commit into
mainfrom
dev/drop-branch-protection-bot

Conversation

@NiccoloFei

Copy link
Copy Markdown
Contributor

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.

Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com>
@NiccoloFei
NiccoloFei requested a review from a team as a code owner September 10, 2026 15:21
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.

2 participants