forked from SeldonIO/seldon-core
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjenkins-x-securitychecks.yml
47 lines (46 loc) · 1.2 KB
/
jenkins-x-securitychecks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
buildPack: none
pipelineConfig:
pipelines:
pullRequest:
pipeline:
agent:
image: snyk/snyk:golang
env:
- name: SNYK_TOKEN
valueFrom:
secretKeyRef:
name: snyk-token
key: token
stages:
- name: pr-build-comment
steps:
- agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
dir: ci
sh: "./add-pr-build-comment"
- name: run-security-tests
parallel:
- name: run-operator-tests
steps:
- agent:
image: snyk/snyk:golang
dir: operator
command: snyk
args:
- test
- --all-projects
- name: run-executor-tests
steps:
- agent:
image: snyk/snyk:golang
dir: executor
command: snyk
args:
- test
- --all-projects
- name: run-python-tests
steps:
- agent:
image: snyk/snyk:python-3.7
dir: python
sh: "make install && snyk test --file=setup.py"