Skip to content

Commit 1ff4825

Browse files
CLOUDP-284785: moved snyk code to main file (#3500)
1 parent eafe736 commit 1ff4825

File tree

2 files changed

+28
-34
lines changed

2 files changed

+28
-34
lines changed

build/ci/evergreen.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ command_type: system
1818
pre_error_fails_task: true
1919
include:
2020
- filename: build/ci/release.yml
21-
- filename: build/ci/snyk.yml
2221

2322
variables:
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
17321747
task_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"
20362060
patch_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: ".*"
20462073
github_pr_aliases:
20472074
- variant: "code_health"
20482075
task_tags: ["code_health"]

build/ci/snyk.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)