feat: place caller-provided files into the sandbox workspace (extra_files, --workspace-file) (#1085)

* add extra-files plumbing so orchestrators can drop single files into the sandbox workspace

* reject extra-file paths that collide with a local source tree

* add --workspace-file so CLI users can place files in the sandbox workspace

* reject repeated and control-character workspace paths

* revalidate persisted workspace files when resuming a run

* drop the workspace-file size limit
This commit is contained in:
yoni-at-strix
2026-08-14 16:43:08 -04:00
committed by GitHub
parent 8ca0c4a9b8
commit 8551339130
13 changed files with 710 additions and 9 deletions
+11
View File
@@ -37,6 +37,13 @@ strix (--target <target> | --target-list <path>) [options]
Path to a file containing detailed instructions.
</ParamField>
<ParamField path="--workspace-file" type="string">
Path to a file on your machine to place into the sandbox workspace before the
scan starts. Repeat the option for more files. Write `PATH:DEST` to choose the
destination inside `/workspace`. `DEST` defaults to the file name. See
[Workspace files](/usage/instructions#workspace-files).
</ParamField>
<ParamField path="--scan-mode, -m" type="string" default="deep">
Scan depth: `quick`, `standard`, or `deep`.
</ParamField>
@@ -142,6 +149,10 @@ strix -t "postman://<collection-uuid>?env=<environment-uuid>"
# Targets from a file
strix --target-list ./targets.txt
# Extra files placed in the sandbox workspace
strix --target ./my-project --workspace-file ./wordlist.txt
strix --target https://app.com --workspace-file ./openapi.yaml:specs/openapi.yaml
```
## Exit Codes