Skip to content

Commit dd432bc

Browse files
jenniferemshepherdtaktran
authored andcommitted
Add Snyk to app
So that our repos avoid exposure to security vunerabilities, Snyk will monitor them for us.
1 parent 75b3a56 commit dd432bc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ jobs:
122122
- run:
123123
name: shared-helper / npm-store-auth-token
124124
command: .circleci/shared-helpers/helper-npm-store-auth-token
125+
- run: npx snyk monitor --org=customer-products --project-name=Financial-Times/x-dash
125126
- run:
126127
name: Bump version
127128
command: npx athloi version ${CIRCLE_TAG}
@@ -136,6 +137,7 @@ jobs:
136137
- run:
137138
name: shared-helper / npm-store-auth-token
138139
command: .circleci/shared-helpers/helper-npm-store-auth-token
140+
- run: npx snyk monitor --org=customer-products --project-name=Financial-Times/x-dash
139141
- run:
140142
name: Extract tag name and version number
141143
command: |

.snyk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Snyk (https://snyk.io) policy file, which patches or ignores known vulnerabilities.
2+
version: v1.13.5
3+
ignore: {}
4+
patch: {}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"start-storybook": "start-storybook -p ${STORYBOOK_PORT:-9001} -s .storybook/static -h local.ft.com",
1313
"build-storybook": "build-storybook -o dist/storybook -s .storybook/static",
1414
"start-docs": "(cd tools/x-docs && npm start)",
15-
"heroku-postbuild": "make install && npm run build"
15+
"heroku-postbuild": "make install && npm run build",
16+
"prepare": "npx snyk protect || npx snyk protect -d || true"
1617
},
1718
"devDependencies": {
1819
"@babel/core": "^7.4.5",
@@ -35,6 +36,7 @@
3536
"react-helmet": "^5.2.0",
3637
"react-test-renderer": "^16.8.6",
3738
"sass-loader": "^7.1.0",
39+
"snyk": "^1.168.0",
3840
"style-loader": "^0.23.1",
3941
"write-file-webpack-plugin": "^4.5.0"
4042
},

0 commit comments

Comments
 (0)