Skip to content

Commit c9131de

Browse files
committed
Update .snyk confi to exclude tests and testutils
The snyk scan has started flagging some of our test utils for path traversal because they can open arbitrary files. They are only used during testing and should be able to open arbitrary files, so this excludes them from the scanning.
1 parent 787b945 commit c9131de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.snyk

+2
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ exclude:
22
global:
33
- "vendor/**"
44
- "**/*_test.go"
5+
- "cmd/testutil/**" # these are utilities only used during testing
6+
- "test/" # these are tests

0 commit comments

Comments
 (0)