Skip to content

Commit 43c4fa1

Browse files
authored
update snyk (#160)
1 parent f141aca commit 43c4fa1

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.circleci/config.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
- checkout
2121
- *getDeps
2222
- run: yarn install --frozen-lockfile
23+
- run:
24+
name: Snyk
25+
command: curl -sL https://raw.githubusercontent.com/segmentio/snyk_helpers/master/initialization/snyk.sh | sh
26+
environment:
27+
SNYK_FAIL_ON: upgradable
28+
SNYK_SEVERITY_THRESHOLD: high
2329
- save_cache:
2430
key: yarn-cache-{{ checksum "yarn.lock" }}
2531
paths:
@@ -93,7 +99,7 @@ jobs:
9399
test-ios-vanilla:
94100
<<: *job
95101
macos:
96-
xcode: "9.4.0"
102+
xcode: '9.4.0'
97103
steps:
98104
- checkout
99105
# macOS VMs doesn't support Docker based caches
@@ -108,7 +114,7 @@ jobs:
108114
test-ios-cocoapods:
109115
<<: *job
110116
macos:
111-
xcode: "9.4.0"
117+
xcode: '9.4.0'
112118
steps:
113119
- checkout
114120
# macOS VMs doesn't support Docker based caches
@@ -141,6 +147,7 @@ workflows:
141147
build_test_and_publish:
142148
jobs:
143149
- install:
150+
context: snyk
144151
filters:
145152
tags:
146153
only: /.*/
@@ -171,19 +178,19 @@ workflows:
171178
only: /.*/
172179
- test-android:
173180
requires:
174-
- build-test-app
181+
- build-test-app
175182
filters:
176183
tags:
177184
only: /.*/
178185
- test-ios-vanilla:
179186
requires:
180-
- build-test-app
187+
- build-test-app
181188
filters:
182189
tags:
183190
only: /.*/
184191
- test-ios-cocoapods:
185192
requires:
186-
- build-test-app
193+
- build-test-app
187194
filters:
188195
tags:
189196
only: /.*/

0 commit comments

Comments
 (0)