Skip to content

Commit f23ab31

Browse files
authored
Exclude java test code from trivy scan (#49)
* Exclude java test code from scan
1 parent de5bc62 commit f23ab31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/trivy-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
- uses: actions/checkout@v3
2727

2828
- name: Trivy Scan
29-
run: trivy fs --exit-code 1 /repo
29+
run: trivy fs --exit-code 1 --skip-dirs "/repo/tests/java" /repo

0 commit comments

Comments
 (0)