Skip to content

Commit b8ea41c

Browse files
CLOUDP-284785: Migrate to Snyk CLI (#3495)
1 parent 0c75793 commit b8ea41c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

build/ci/evergreen.yml

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

2223
variables:
2324
- &go_linux_version

build/ci/snyk.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
tasks:
2+
- name: snyk_monitor
3+
commands:
4+
- command: shell.exec
5+
params:
6+
include_expansions_in_env:
7+
- workdir
8+
shell: bash
9+
script: |
10+
docker run \
11+
--rm \
12+
-e SNYK_TOKEN=${SNYK_TOKEN} \
13+
-e SNYK_CFG_ORG=${SNYK_ORG} \
14+
-v ${workdir}/src/github.com/mongodb/mongodb-atlas-cli:/app \
15+
snyk/snyk:golang snyk monitor
16+
17+
buildvariants:
18+
- name: ubuntu
19+
display_name: Snyk
20+
cron: '@daily'
21+
run_on:
22+
- ubuntu2204-large
23+
tasks:
24+
- name: snyk_monitor

0 commit comments

Comments
 (0)