summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2021-05-24 12:12:26 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-02 23:58:19 +0000
commit382f72294154f55ff944f7cc5a1aeff3dfe55346 (patch)
tree12a8575fe44684d1fab1b0ea81321f7d58e436b4 /evergreen
parent69564b219da39afa1143009db4e9c58d21e337fb (diff)
downloadmongo-382f72294154f55ff944f7cc5a1aeff3dfe55346.tar.gz
SERVER-56965 blackduck_scanner should only check for security vulnerabilties on non-master branches
(cherry picked from commit dab9cd94768cf8f3caa4fecf8820f6f1029317c5)
Diffstat (limited to 'evergreen')
-rwxr-xr-xevergreen/blackduck_hub.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/evergreen/blackduck_hub.sh b/evergreen/blackduck_hub.sh
index abc2af3f36a..63630a34456 100755
--- a/evergreen/blackduck_hub.sh
+++ b/evergreen/blackduck_hub.sh
@@ -9,4 +9,9 @@ set -o verbose
# activate the virtualenv if it has been set up
activate_venv
-python buildscripts/blackduck_hub.py -v scan_and_report --build_logger=mci.buildlogger --build_logger_task_id=${task_id} --report_file=report.json
+additional_args=
+if [ "$branch_name" != "master" ]; then
+ additional_args="--vulnerabilities_only"
+fi
+
+python buildscripts/blackduck_hub.py -v scan_and_report --build_logger=mci.buildlogger --build_logger_task_id=${task_id} --report_file=report.json $additional_args