The JFrog DevSecStack Plugin is a custom plugin for JFrog CLI that adds DevSec related capabilities to your pipeline.
- Add Cargo (🦀 Rust) dependencies to build-info from Cargo.lock file.
To install the plugin, follow these steps:
-
Clone the repository:
git clone https://github.com/devsecstack/jf-devsecstack-plugin.git cd jf-devsecstack-plugin
-
Build the plugin:
go build -o jf-devsecstack-plugin
-
Publish the plugin:
export JFROG_CLI_PLUGINS_SERVER=<SERVER_ID> jf plugin publish devsecstack v1.0.0
-
Install the plugin:
export JFROG_CLI_PLUGINS_SERVER=<SERVER_ID> jf plugin install devsecstack
To use the plugin, run the following command:
jf devsecstack cargo-add-dependencies [flags]
jf devsecstack cad --build-name my-build --build-number 1
--build-name
(required): Build name.--build-number
(required): Build number.--project
(optional): JFrog project key.--module
(optional): Optional module name in the build-info for adding the dependency.--server
(required): Artifactory server ID.--dry-run
(optional): Set to true to disable communication with Artifactory. Default is false.
CARGO_SKIP
(optional): Set to true to skip crago commands (cargo generate-lockfile
). Default is false.CARGO_LOCKFILE
(optional): Path to the Cargo.lock file. Default isCargo.lock
.