
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@saltcorn/bash
Advanced tools
Run bash actions in Saltcorn
The run_bash_script
action allows you to run shell code. It used to be
restricted to bash scripts, but you can now use any shell interpreter
(including Python).
If you want to use a different shell interpreter than bash
, you can set
the first line to a shebang
If the action is run against a specific row (e.g. as a button in List or
Show views, or Insert/Update triggers), the fields are used to set environment
variables. These are named ROW_{field name in upper case}
. For instance, if
the row contains a field called name
then the environment variable ROW_NAME
will be set. To access this in a bash script you should proceeded by a dollar sign ($),
for instance:
echo $ROW_NAME
The environment variables SC_USER_ID
and SC_USER_ROLE
are set to the
user ID and the user's role ID, respectively
To use this in workflows you use environment variables to access variables in the context. You cannot use interpolation in the code as this might conflict with your chosen shell interpreter.
After the action has completed, the following variables will be set in the context
exitcode
: the exit code as a numberstdout
: the process standard outputstderr
: the process standard errorFAQs
Run bash actions in Saltcorn
We found that @saltcorn/bash demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.