Skip to content

Commit 8fd7dac

Browse files
authored
fix: update ci-integration.md to use OWASP org refs and add --all to CI examples (#248)
Replaces three remaining sonukapoor/cve-lite-cli references with OWASP/cve-lite-cli. Adds --all to CLI and GitHub Actions CI examples so build logs surface all findings, and adds the corresponding all input to action.yml. Closes #247
1 parent f13938c commit 8fd7dac

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ inputs:
1919
description: "Exit non-zero at or above this severity"
2020
required: false
2121
default: ""
22+
all:
23+
description: "Show all findings in the table regardless of severity threshold"
24+
required: false
25+
default: "false"
2226
verbose:
2327
description: "Run the scan with verbose output"
2428
required: false
@@ -105,6 +109,7 @@ runs:
105109
PROJECT_PATH: ${{ steps.resolve.outputs.project-path }}
106110
USE_OFFLINE: ${{ steps.resolve.outputs.use-offline }}
107111
OFFLINE_DB_PATH: ${{ steps.resolve.outputs.offline-db }}
112+
INPUT_ALL: ${{ inputs.all }}
108113
INPUT_FAIL_ON: ${{ inputs.fail-on }}
109114
INPUT_VERBOSE: ${{ inputs.verbose }}
110115
INPUT_PROD_ONLY: ${{ inputs.prod-only }}
@@ -113,6 +118,10 @@ runs:
113118
114119
args=("${PROJECT_PATH}")
115120
121+
if [[ "${INPUT_ALL}" == "true" ]]; then
122+
args+=("--all")
123+
fi
124+
116125
if [[ "${INPUT_VERBOSE}" == "true" ]]; then
117126
args+=("--verbose")
118127
fi

docs/ci-integration.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ This works well in a `pre-push` hook or another team-approved hook to catch high
6565
### Basic release gate
6666

6767
```bash
68-
cve-lite . --verbose --fail-on high
68+
cve-lite . --all --verbose --fail-on high
6969
```
7070

71-
Use `--verbose` in CI so build logs include the full fix plan, dependency paths, detailed table output, and suggested fix commands when a scan fails.
71+
Use `--all` so the build log includes every finding regardless of severity threshold. Use `--verbose` so the log includes the full fix plan, dependency paths, detailed table output, and suggested fix commands when a scan fails.
7272

7373
### Controlled or restricted environments
7474

7575
Sync the advisory DB separately, then scan offline:
7676

7777
```bash
7878
cve-lite advisories sync --output ./.cache/advisories.db
79-
cve-lite . --offline-db ./.cache/advisories.db --verbose --fail-on high
79+
cve-lite . --all --offline-db ./.cache/advisories.db --verbose --fail-on high
8080
```
8181

8282
---
@@ -100,13 +100,14 @@ jobs:
100100
runs-on: ubuntu-latest
101101
steps:
102102
- uses: actions/checkout@v4
103-
- uses: sonukapoor/cve-lite-cli@v1
103+
- uses: OWASP/cve-lite-cli@v1
104104
with:
105+
all: "true"
105106
verbose: "true"
106107
fail-on: high
107108
```
108109
109-
This repository also uses CVE Lite CLI in its own CI to scan itself. See [`self-scan.yml`](https://github.com/sonukapoor/cve-lite-cli/blob/main/.github/workflows/self-scan.yml).
110+
This repository also uses CVE Lite CLI in its own CI to scan itself. See [`self-scan.yml`](https://github.com/OWASP/cve-lite-cli/blob/main/.github/workflows/self-scan.yml).
110111

111112
---
112113

@@ -125,11 +126,12 @@ jobs:
125126
runs-on: ubuntu-latest
126127
steps:
127128
- uses: actions/checkout@v4
128-
- uses: sonukapoor/cve-lite-cli@v1
129+
- uses: OWASP/cve-lite-cli@v1
129130
with:
130131
sync-advisories: "true"
131132
offline: "true"
132133
offline-db: ./.cache/cve-lite/advisories.db
134+
all: "true"
133135
verbose: "true"
134136
fail-on: high
135137
```

0 commit comments

Comments
 (0)