Integrating with the CI
Our CLI is built to be easily integrated as part of an organization's CI pipeline.
GitHub Actions
If you're using GitHub actions then you can just incorporate Seal Security's own GitHub action.
Just add it immediately after pulling the packages (for example with npm install
) and before any other step:
Note that this will apply every possible fix. If you prefer to select which packages to seal, use the local configuration and set fix_mode: local
instead.
Other CI Platforms
The CLI should be added as the step immediately after pulling the packages (for example with npm install
) and before anything else.
The following example shows how to directly download the latest version of the CLI from a Linux terminal.
Note that this will apply every possible fix. If you prefer to select which packages to seal, use the local configuration and replace the last line with ./seal fix --mode local
.
Docker
You can also use our CLI in a docker. The CLI should be added as the step immediately after pulling the packages (for example with npm install
) and before anything else.
The following example shows how to directly download the latest version of the CLI from a Linux terminal and deploy it in a Dockerfile.
Note that this will apply every possible fix. If you prefer to select which packages to seal, use the local configuration and replace the all
flag with the local
flag.
Last updated