Soluble CLI
This is the command line interface for Soluble.
Installation
On MacOS use homebrew:
brew install soluble-ai/soluble/soluble-cli
To upgrade to the latest version:
brew upgrade soluble-ai/soluble/soluble-cli
On linux, run:
wget -O - https://raw.githubusercontent.com/soluble-ai/soluble-cli/master/linux-install.sh | sh
# or
curl https://raw.githubusercontent.com/soluble-ai/soluble-cli/master/linux-install.sh | sh
The install will drop the executable in the current directory. If you run this as root
or can sudo to root,
the install will try to move the binary to /usr/local/bin/soluble
.
Windows executables can be found on the releases page.
Run Security Scans
Run security scans on your code with:
soluble auto-scan -d ~/my-stuff
This will search under ~/my-stuff
for a variety of infrastructre-as-code files and scan them.
If you'd like to manage the findings of those tools with Soluble, you'll have to authenticate the CLI with:
soluble login
Then re-run the scan with:
soluble auto-scan -d ~/my-stuff --upload
You can instead run individual scans:
CI Integration
(WIP - basic notes)
- Set the environment variable
SOLUBLE_API_TOKEN
to an API token from https://app.soluble.cloud/admin/tokens/access
- Add a step to run
soluble auto-scan -d . --upload
, or run individual scans (see soluble iac-scan --help
)
- At then end of your CI job, run
soluble build update-pr
to update the pull request with the scan results.