fix: copy fullsend binary to sandbox for pre-agent security scan - #372
Merged
Conversation
The pre-agent security scan runs `fullsend scan context` inside the sandbox, but the fullsend binary was only installed on the GitHub Actions runner host, not in the sandbox. This caused the scan to fail with "find: 'fullsend': No such file or directory". Changes: - bootstrapSandbox() now copies the fullsend binary from the host into /tmp/workspace/bin/fullsend in the sandbox - buildScanContextCommand() now sources .env to ensure PATH includes /tmp/workspace/bin where fullsend is installed This ensures the sandbox uses the same version of fullsend that's running the workflow, whether vendored (development) or released (production). Fixes: https://github.com/fullsend-ai/.fullsend/actions/runs/24842943162/job/72721816328 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Site previewPreview: https://db670abd-site.fullsend-ai.workers.dev Commit: |
Member
Author
Original FailureThis fix addresses the failure observed in: The error at step 10, line 509 was: |
waynesun09
reviewed
Apr 23, 2026
waynesun09
left a comment
Member
There was a problem hiding this comment.
Reviewed across 4 agents (Claude, Gemini, Cursor, security-focused). All approve. One suggestion: add a unit test for buildScanContextCommand (see inline comment).
Covers the source .env prefix, trace ID interpolation, and exec fullsend scan context suffix — matching the existing TestBuildClaudeCommand pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 tasks
This was referenced Jul 2, 2026
5 tasks
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
Fixes the pre-agent security scan failure where
fullsend scan contextcouldn't be found inside the sandbox.Problem
The triage workflow failed with:
The pre-agent security scan runs inside the sandbox and executes:
However, the fullsend binary was only installed on the GitHub Actions runner host, not in the sandbox image.
Solution
1. Copy fullsend binary into sandbox (
bootstrapSandbox)os.Executable()to find the current fullsend binary/tmp/workspace/bin/fullsendin the sandboxchmod +x2. Source .env before scanning (
buildScanContextCommand)source /tmp/workspace/.env &&before the find command/tmp/workspace/binwhere fullsend is installedThis approach:
buildClaudeCommandwhich also sources.envTest Plan
Manual verification:
fullsend run triagelocally with openshell availableE2E verification:
Related
Fixes: https://github.com/fullsend-ai/.fullsend/actions/runs/24842943162/job/72721816328