Run Bash Script
Run Bash Script executes a .sh script through a Command Runner
policy. The script path must resolve under that runner's Allowed Paths.
It differs from Run Command in taking a script path rather than an executable — otherwise the argument, environment and output behaviour is the same.
The activity has four tabs: Configuration, Arguments, Environment, and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Optional | Name of the component. |
| Description | Optional | Description of the component. |
| Command Runner | Optional | The Command Runner policy resource that gates this execution. |
| Script Path | Optional | Path to the .sh script; must resolve under the runner's Allowed Paths. |
| Working Directory | Optional | Must be under the runner's Allowed Paths. Defaults to the first Allowed Paths entry. |
| Standard Input | Optional | Text written to the process stdin, which is then closed. |
Script Path, Working Directory, and Standard Input each support mapped and vault-backed values.
Arguments
| Field | Required | Description |
|---|---|---|
| Arguments | Optional | Arguments passed after the script path, each a discrete array element. |
Environment
| Field | Required | Description |
|---|---|---|
| Environment Overrides | Optional | Per-run environment variables applied on top of the runner's environment. |
Values are mapping and vault capable.
Output
The activity returns a scriptOutput object.
| Field | Data Type | Description |
|---|---|---|
| exitCode | Integer | Process exit code. |
| stdout | String | Captured standard output. |
| stderr | String | Captured standard error. |
| durationMs | Integer | Run duration in milliseconds. |
| timedOut | Boolean | Whether the run exceeded Max Runtime (seconds) on the Command Runner. |
| truncated | Boolean | Whether output exceeded Max Output Bytes (per stream) and was cut short. |