Skip to content

Commit def37af

Browse files
ci(trivy): skip base runner externals and scan vuln only
- Add --scanners vuln to disable secret scanning (faster) - Add --skip-dirs /home/runner/externals to skip base Node/npm tree Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 95e6041 commit def37af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/validate.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,10 @@ jobs:
9090
IMAGE_NAME: ${{ steps.manifest.outputs.image_name }}
9191
run: |
9292
trivy image \
93+
--scanners vuln \
9394
--ignore-unfixed \
9495
--pkg-types library \
96+
--skip-dirs /home/runner/externals \
9597
--ignorefile .trivyignore \
9698
--severity HIGH,CRITICAL \
9799
--exit-code 1 \

scripts/builder.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ trivy_scan () {
288288
set +e
289289
trivy_scan_exec=$(\
290290
trivy image \
291+
--scanners vuln \
291292
--ignore-unfixed \
292293
--pkg-types library \
294+
--skip-dirs /home/runner/externals \
293295
--ignorefile .trivyignore \
294296
--input ${BUILD_DIR}/${IMAGE_NAME}-${IMAGE_TAG}.tar \
295297
--format github \

0 commit comments

Comments
 (0)