TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DevDonzo/warden/llms.txt
Use this file to discover all available pages before exploring further.
bootstrap-ci command writes a GitHub Actions workflow file into your repository so that Warden runs automatically in CI. On each pull request against main, every push to main, and on a weekly Monday-morning schedule, the generated workflow installs your project dependencies, executes warden scan --ci, and uploads scan artifacts for later review. The command is safe to run multiple times: existing files are left untouched unless you pass --force.
Synopsis
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--workflow-name <name> | string | warden.yml | Filename for the generated workflow inside .github/workflows/. |
--scanner <type> | string | npm-audit | Scanner to invoke in CI. Accepts snyk, npm-audit, or all. |
--severity <level> | string | high | Minimum severity gate that fails the pipeline. Accepts low, medium, high, or critical. |
--create-config | boolean flag | — | Write a default .wardenrc.json to the repository root if one does not already exist. |
--force | boolean flag | — | Overwrite generated files even when they already exist. |
The
--scanner flag default in bootstrap-ci is npm-audit, which differs from the scan command’s default of snyk. This makes the generated workflow dependency-free — no Snyk CLI installation is required unless you explicitly pass --scanner snyk.What it creates
Runningwarden bootstrap-ci may create up to two files depending on the flags you supply:
| Path | When created |
|---|---|
.github/workflows/warden.yml | Always (or the name you pass to --workflow-name). |
.wardenrc.json | Only when --create-config is passed and the file does not already exist. |
.github/workflows/) is created automatically if it does not exist.
Output
After the command runs, Warden reports which files were created and which were skipped because they already existed:--force was not passed, you will see a warning instead of a success line:
Generated workflow
The command renders the following GitHub Actions workflow. The--scanner and --severity values you pass are interpolated directly into the warden scan invocation.
Repository secrets
The generated workflow references two secrets. You must add these in your repository’s Settings → Secrets and variables → Actions page before the workflow will run successfully:| Secret | Required | Purpose |
|---|---|---|
GITHUB_TOKEN | Yes | Automatically provided by GitHub Actions — no manual setup needed. Required for Warden to open pull requests. |
SNYK_TOKEN | Only with --scanner snyk | Your Snyk API authentication token. Leave unset when using npm-audit. |
Examples
Next steps
Review the generated workflow
Open
.github/workflows/warden.yml and confirm the scanner and severity settings match your project’s requirements.Add repository secrets
If you chose
--scanner snyk, add SNYK_TOKEN to your repository secrets. GITHUB_TOKEN is supplied automatically by GitHub Actions.Commit and push
Stage and push the new workflow file. GitHub Actions will pick it up immediately on the next qualifying event.