forked from SeldonIO/seldon-core
-
Notifications
You must be signed in to change notification settings - Fork 0
177 lines (149 loc) · 5.08 KB
/
security_tests.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
name: V1 Security Tests
on:
push:
branches: [ master, rabbitmq* ]
pull_request:
branches: [ master, rabbitmq* ]
workflow_dispatch:
jobs:
security-python:
runs-on: ubuntu-latest
container: snyk/snyk:python-3.8
steps:
- uses: actions/checkout@v2
- name: security-python
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
pip install -e python/.
snyk test --file=python/setup.py --fail-on=upgradable --severity-threshold=high
security-operator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-operator
# NOTE: We use the Snyk action (instead of the Snyk base image) so that
# it respects the Go version we use.
uses: snyk/actions/golang@master
with:
args: --fail-on=upgradable
--severity-threshold=high
--file=operator/go.mod
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
security-executor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snyk/actions/setup@master
- uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
- name: Set up executor's environmnet
# NOTE: The executor needs a couple extra steps before we can build it,
# like copying the operator's package into the executor's folder so that
# it's accessible.
run: make -C executor/ executor
- name: security-executor
run: snyk test \
--fail-on=upgradable
--severity-threshold=high
--file=executor/go.mod
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
security-image-executor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-executor
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-executor:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=executor/Dockerfile.executor
security-image-operator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-operator
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-operator:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=operator/Dockerfile
security-image-python-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-python-base
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/seldon-core-s2i-python37-ubi8:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=wrappers/s2i/python/Dockerfile
security-image-python-sklearn:
runs-on: ubuntu-latest
steps:
- name: security-image-python-sklearn
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/sklearnserver:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high
security-image-python-mlflow:
runs-on: ubuntu-latest
steps:
- name: security-image-python-mlflow
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/mlflowserver:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high
security-image-python-xgboost:
runs-on: ubuntu-latest
steps:
- name: security-image-python-xgboost
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/xgboostserver:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high
security-image-alibi-explain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-alibi-explain
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/alibiexplainer:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=components/alibi-explain-server/Dockerfile
security-image-alibi-detect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-alibi-detect
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/alibi-detect-server:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=components/alibi-detect-server/Dockerfile
security-image-initializer-rclone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: security-image-request-logger
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: seldonio/rclone-storage-initializer:1.16.0-dev
args: --fail-on=upgradable --app-vulns --severity-threshold=high --file=components/rclone-storage-initializer/Dockerfile