Repository navigation
fix(ci): restore executable bits on shell scripts and guard against regressions - #3809
Merged
Merged
Conversation
sangwook-dev
requested review from
cixzhang,
ejhammond,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
July 11, 2026 10:00
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…egressions The bulk copyright-header rewrite (1a04b9d) dropped the executable bit on three shell scripts. The daily 'Prune merged branches' workflow runs ./scripts/prune-branches.sh directly, so every scheduled run since then has failed with 'Permission denied' (exit 126) — 30+ consecutive failures, with merged branches piling up unpruned. Restore the bit on all three scripts and add check:executable-bits to the check:repo chain (which lint runs on every PR), so a dropped bit on any tracked *.sh file fails CI instead of a scheduled workflow weeks later. Only *.sh files are checked: JS/TS scripts here are always invoked through an explicit interpreter, where the bit is irrelevant.
sangwook-dev
force-pushed
the
fix/sh-executable-bits
branch
from
July 11, 2026 12:28
a3162b1 to
7bc0cb4
Compare
cixzhang
approved these changes
Jul 12, 2026
cixzhang
left a comment
Contributor
There was a problem hiding this comment.
Thanks, yeah these scripts should be executable.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The daily Prune merged branches workflow has failed on every scheduled run since May 18 (30+ consecutive failures) with:
The bulk copyright-header rewrite (1a04b9d, #2193) changed
scripts/prune-branches.shfrom mode100755to100644, dropping the executable bit the workflow relies on. The same commit also dropped the bit oninternal/vibe-tests/scripts/publish-report.shandsmoke-test.sh(not CI-breaking, but same defect).Because the failure only surfaced in a scheduled workflow, nobody was watching — merged branches have been piling up unpruned for weeks.
Changes
100755on the three affected*.shscripts (mode-only change).scripts/check-executable-bits.mjs+check:executable-bitsto thecheck:repochain, so a dropped bit on any tracked*.shfile fails the Lint workflow on the offending PR instead of a scheduled workflow weeks later. Only*.shfiles are checked — JS/TS scripts in this repo are always invoked through an explicit interpreter (node x.mjs,npx tsx x.ts), where the bit is irrelevant.Test plan
node scripts/check-executable-bits.mjsfails (exit 1) against the pre-fix index, listing all three files*.shfiles, all100755)pnpm check:repopasses end-to-end./scripts/prune-branches.shnow executes directly (previouslyPermission denied)