File tree Expand file tree Collapse file tree 2 files changed +28
-34
lines changed
Expand file tree Collapse file tree 2 files changed +28
-34
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ command_type: system
1818pre_error_fails_task : true
1919include :
2020 - filename : build/ci/release.yml
21- - filename : build/ci/snyk.yml
2221
2322variables :
2423 - &go_linux_version
@@ -1729,6 +1728,22 @@ tasks:
17291728 vars :
17301729 span : " coverage"
17311730 attr : " total=${percentage},count=${count}"
1731+ - name : snyk_monitor
1732+ tags :
1733+ - snyk
1734+ commands :
1735+ - command : shell.exec
1736+ params :
1737+ include_expansions_in_env :
1738+ - workdir
1739+ shell : bash
1740+ script : |
1741+ docker run \
1742+ --rm \
1743+ -e SNYK_TOKEN=${SNYK_TOKEN} \
1744+ -e SNYK_CFG_ORG=${SNYK_ORG} \
1745+ -v ${workdir}/src/github.com/mongodb/mongodb-atlas-cli:/app \
1746+ snyk/snyk:golang snyk monitor
17321747task_groups :
17331748 - name : atlas_deployments_windows_group
17341749 setup_task :
@@ -2033,6 +2048,15 @@ buildvariants:
20332048 << : *go_linux_version
20342049 tasks :
20352050 - name : " .coverage"
2051+ - name : ubuntu
2052+ display_name : Snyk
2053+ tags :
2054+ - snyk
2055+ - cron
2056+ run_on :
2057+ - ubuntu2204-large
2058+ tasks :
2059+ - name : " .snyk"
20362060patch_aliases :
20372061 - alias : " localdev"
20382062 variant_tags : [".localdev .cron"]
@@ -2043,6 +2067,9 @@ patch_aliases:
20432067 - alias : " cleanup"
20442068 variant_tags : [".cleanup .cron"]
20452069 task : " .*"
2070+ - alias : " snyk"
2071+ variant_tags : [".snyk .cron"]
2072+ task : " .*"
20462073github_pr_aliases :
20472074 - variant : " code_health"
20482075 task_tags : ["code_health"]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments