Skip to content

Commit 602cda0

Browse files
authored
Plugin snyk scan: Only runtime dependencies scanning, exclude test & compile deps for now. (#18562)
1 parent d7a920e commit 602cda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/scripts/snyk/plugins-scan/generate-steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def generate_snyk_step(plugin_name: str, branch: str, logstash_branch: str = Non
165165
# LS core resolves the gems so Gemfile needs to be excluded
166166
# .buildkite, .ci path may contain python/other projects not necessary to scan
167167
# eventually using --all-projects is good because snyk may detect CVEs through other package managers like maven, gradle, (ruby excluded) etc..
168-
./snyk monitor --all-projects --exclude=Gemfile,.buildkite,.ci,vendor.json --org=logstash --target-reference={branch}
168+
./snyk monitor --all-projects --exclude=build,Gemfile,.buildkite,.ci,vendor.json --org=logstash --target-reference={branch} --configuration-matching="^runtime"
169169
170170
# Cleanup
171171
rm -rf {work_dir}

0 commit comments

Comments
 (0)