Usage Examples

Setting up the CLI

  1. Download and install the correct version of the CLI according to these instructions.

  2. Configure the access token to the artifact server. If you don't have a token see these instructions.

export SEAL_TOKEN=<token> # the access token for the server

npm project

# Initialize an npm project
npm init -y

# Install example dependency
npm install ejs@2.7.4

# Scan the manifest file for vulnerable packages and create a local configuration
# file telling the CLI to fix the example dependecy
seal scan --generate-local-config
# Note that a .seal-actions.yml file was created.

# Fix the example dependencies by replacing them with their sealed versions
seal fix

pip project

# Create and activate Python virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install example dependency
pip install pyjwt==1.7.1

# Create the manifest file
pip freeze > requirements.txt

# Scan the manifest file for vulnerable packages and create a local configuration
# file telling the CLI to fix the example dependecy
seal scan --generate-local-config
# Note that a .seal-actions.yml file was created.

# Fix the example dependencies by replacing them with their sealed versions
seal fix

Last updated