Skip to content

Commit e10b49b

Browse files
Merge pull request #15 from nicheinc/x/snyk-file
Add .snyk file to exclude vendor and test files from Snyk Code scanning
2 parents 412cdbe + b79ec63 commit e10b49b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.snyk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Snyk (https://snyk.io) policy file
2+
---
3+
exclude:
4+
# Exclusion syntax: https://docs.snyk.io/scan-with-snyk/import-project-repository/exclude-directories-and-files-from-project-import#syntax-to-use-to-exclude-files-and-directories-from-snyk-code-testing
5+
global:
6+
# The vendor directory corresponds to the go.mod, which Snyk already scans
7+
# for vulnerable versions of dependencies.
8+
- vendor
9+
# Test files are excluded from non-test builds and cannot affect production.
10+
- "*_test.go"

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.snyk @nicheinc/sre @nicheinc/delta-be

0 commit comments

Comments
 (0)