Skip to content

Commit 23d0a52

Browse files
build: exclude maven2 artifact repo checkout from Trivy scan (#252)
The maven2 directory is a transient checkout of the artifact repository used only during deployment. Its dependencies (e.g., fast-xml-parser in the pruner tool) are not part of liboscal-java and should be scanned in the maven2 repository instead.
1 parent 3503379 commit 23d0a52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ jobs:
211211
format: 'sarif'
212212
output: 'trivy-results.sarif'
213213
severity: 'CRITICAL,HIGH,MEDIUM,LOW,UNKNOWN'
214-
# Exclude submodule (has its own security scanning in upstream repo)
215-
skip-dirs: 'oscal'
214+
# Exclude submodule and maven2 artifact repo checkout (have their own security scanning)
215+
skip-dirs: 'oscal,maven2'
216216
- name: Trivy Summary
217217
if: ${{ !inputs.skip_code_scans }}
218218
run: |

0 commit comments

Comments
 (0)