forked from snyk-labs/nodejs-goof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
36 lines (33 loc) · 739 Bytes
/
buildspec.yml
File metadata and controls
36 lines (33 loc) · 739 Bytes
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
version: 0.2
env:
parameter-store:
# Requires that you have a secure string in AWS Secret Manager
SNYK_TOKEN: "SNYK_TOKEN"
SLACK_TOKEN: "SLACK_API_TOKEN"
phases:
install:
commands:
- npm install -g snyk
- npm install -g snyk-to-html
- npm install -g html-pdf
- npm link html-pdf
- npm link phantomjs-prebuilt
build:
commands:
- npm install
- npm test # Run your unit tests, etc
- snyk test --json | snyk-to-html -o results.html
- html-pdf results.html results.pdf
#artifacts:
# files:
# - '**/*'
# name: snyk-result
#files:
# - location
# - location
#name: $(date +%Y-%m-%d)
#discard-paths: yes
#base-directory: location
#cache:
#paths:
# - paths