Skip to content

Commit 23b5ac9

Browse files
committed
Add the 2.14.0 upgrade guide to the README
1 parent e1a8356 commit 23b5ac9

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818

1919
### Documentation
2020

21+
- The README's [Upgrading to 2.14.0](README.md#upgrading-to-2140) section lists
22+
what changes for `--strict-blocking` pipelines and what to check before
23+
upgrading.
2124
- Clarified that `--include-module-folders` discovers dependency manifests.
2225
Added a guide to scanning packages installed outside the lockfile with a
2326
CycloneDX SBOM.

‎README.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,23 @@ scan exit `0` on *both* findings and outages — the `soft_fail: 100` rule would
268268
never match, and real findings would stop blocking. That's usually not what you
269269
want.
270270

271+
### Upgrading to 2.14.0
272+
273+
2.14.0 changes what `--strict-blocking` evaluates, so jobs that passed on 2.13.x
274+
can now fail on existing Block alerts. That is the intended result. Check these
275+
before upgrading:
276+
277+
| Change | Affects | What to do |
278+
|--------|---------|------------|
279+
| Each advisory on a package counts separately, findings that persist across a version change count as existing, and Block takes precedence over Warn | `--strict-blocking` | Expect higher existing-blocker counts. |
280+
| Code-only changes run a comparison instead of a non-blocking full scan | `--strict-blocking` without `--ignore-commit-files` | These runs take about as long as `--ignore-commit-files` runs and can fail on existing Block alerts. |
281+
| Without `--scm github` or `--scm gitlab`, that includes default-branch pushes and scans of non-git paths | `--strict-blocking` in Bitbucket, Azure Pipelines, Jenkins and other pipelines without `--scm` | The token needs `full-scans:list` and `repo:list`; see [API token permissions](docs/troubleshooting.md#api-token-permissions). Without them the run exits `3`. |
282+
| A comparison returned with missing or invalid package lists is an infrastructure failure | Every comparison | Exits `3` by default; `--exit-code-on-api-error` and `--disable-blocking` apply. |
283+
| Reopened and ready-for-review pull requests run the PR scan | `--scm github` | If you removed `reopened` from your workflow triggers to avoid unscanned passes, add it back. |
284+
| The GitHub Actions example is split into PR, push and ignore-command workflows | Pipelines copied from the example | Put the [PR workflow](workflows/github-actions.yml) at the existing workflow path and add the [push workflow](workflows/github-actions-push.yml) in the same change. See [Required GitHub checks](docs/ci-cd.md#required-github-checks). |
285+
286+
See the [release notes](CHANGELOG.md#2140) for the full list.
287+
271288
### Upgrading to 2.13.0
272289

273290
Update pipeline rules and wrapper scripts that match specific exit codes:

0 commit comments

Comments
 (0)