Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ vg scan --format sarif --out vibgrate.sarif --junit vibgrate.junit.xml --fail-on
```
- A scan with `--baseline` also records findings that already appear in the snapshot (rule, location, and id). The text report prints the count, SARIF lists the same ids as suppressions, and those findings stay in the report.

Copy-paste CI templates live in `examples/github-actions/`. When the job fails, when warn mode stays green, which versions to pin, and how a DriftScore badge is filled in: [`examples/github-actions/README.md`](./examples/github-actions/README.md). Azure DevOps and GitLab CI snippets are in [DOCS.md](./DOCS.md#ci-integration).
Copy-paste CI templates live in `examples/github-actions/`. When the job fails, when warn mode stays green, which release to pin, and how a DriftScore badge is filled in: [`examples/github-actions/README.md`](./examples/github-actions/README.md). Azure DevOps and GitLab CI snippets are in [DOCS.md](./DOCS.md#ci-integration).

---

Expand Down
4 changes: 3 additions & 1 deletion docs/ci/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ JSON report (`format: json`) if a later step needs the number.
- SARIF upload template: `examples/github-actions/driftscore-sarif.yml`
- Vulnerability gate + SARIF template: `examples/github-actions/vulnerabilities-sarif.yml`

Copy any template into your repository under `.github/workflows/`. The README is enough to add the basic gate: the workflow, when the job fails, and how a README badge is filled in.
Copy any template into your repository under `.github/workflows/`. The drift-gate README is enough to add the basic gate to an empty repository: the workflow, when the job fails, which release to pin, and how a README badge is filled in.

## Vulnerability gate (`--vulns`)

Expand Down Expand Up @@ -116,6 +116,8 @@ Do not set `continue-on-error` on the gate step. Exit 2 is what blocks the merge
vg scan --format json --out vibgrate-report.json --fail-on error --drift-budget 40
```

An unpinned `npx @vibgrate/cli` installs npm `latest` on every run. The pinned workflow in [`examples/github-actions/README.md`](../../examples/github-actions/README.md) is the copy-paste gate.

Other scan-time gates on the same command:

- `--fail-on error` fails on error-level findings. Warnings do not fail this gate.
Expand Down
Loading
Loading