Skip to content

fix(sandbox): force executable bit on host_files copied into bin/#343

Merged
ascerra merged 2 commits into
mainfrom
fix/chmod-host-files-in-sandbox
Apr 23, 2026
Merged

fix(sandbox): force executable bit on host_files copied into bin/#343
ascerra merged 2 commits into
mainfrom
fix/chmod-host-files-in-sandbox

Conversation

@ralphbean

@ralphbean ralphbean commented Apr 22, 2026

Copy link
Copy Markdown
Member

Summary

  • The GitHub Contents API (used by admin install) commits all files as 100644, so scripts like scan-unicode lose their executable bit in the .fullsend repo
  • When bootstrapEnv() copies these into the sandbox via SCP, they remain non-executable — test -x $SCAN_UNICODE fails and the review agent aborts with missing-context
  • Force chmod +x on any host_file whose destination is under a bin/ directory
  • This is a workaround until admin install preserves git tree modes (#345 comment)

Verified: triggered a review on appdumpster/test-repo with the fix — agent completed successfully and approved the PR.

Test plan

  • go vet passes
  • go test ./internal/cli/... passes
  • Review agent completes successfully on appdumpster/test-repo with vendored binary containing this fix

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Apr 22, 2026

Copy link
Copy Markdown

Site preview

Preview: https://47ca10c5-site.fullsend-ai.workers.dev

Commit: b5089b98f0f97b5f5412ee4e0f131e194fb9169c

The GitHub Contents API (used by admin install) commits all files as
100644, so scripts like scan-unicode lose their executable bit in the
.fullsend repo. When bootstrapEnv() copies these into the sandbox via
SCP, they remain non-executable and `test -x` fails.

Work around this by forcing chmod +x on any host_file whose destination
is under a bin/ directory. This is a stopgap until admin install
preserves the git tree mode (see #312).

Fixes: appdumpster/test-repo#13 review failure

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ralphbean ralphbean force-pushed the fix/chmod-host-files-in-sandbox branch from f0af993 to 0c8149d Compare April 23, 2026 00:05
@ralphbean ralphbean changed the title fix(sandbox): preserve execute bit on host_files copied into sandbox fix(sandbox): force executable bit on host_files copied into bin/ Apr 23, 2026
Comment thread internal/cli/run.go Outdated
Comment thread internal/cli/run.go Outdated
Co-authored-by: Ralph Bean <rbean@redhat.com>
@ascerra ascerra added this pull request to the merge queue Apr 23, 2026
Merged via the queue into main with commit 13b541a Apr 23, 2026
3 checks passed
@ascerra ascerra deleted the fix/chmod-host-files-in-sandbox branch April 23, 2026 01:29
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