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
20 lines (18 loc) · 694 Bytes
/
buildspec.yml
File metadata and controls
20 lines (18 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: 0.2
env:
parameter-store:
# Requires that you have a secure string in AWS Secret Manager
SNYK_TOKEN: "SNYK_TOKEN"
SNYK_ORG_ID: "SNYK_ORG_ID"
JIRA_PROJECT_ID: "JIRA_PROJECT_ID"
phases:
install:
commands:
- npm install -g snyk
- cd /tmp && curl -Lo ./snyk_jira_sync https://github.com/snyk-tech-services/jira-tickets-for-new-vulns/releases/download/0.4.0/snyk-jira-sync-linux
- chmod -R +x ./snyk_jira_sync && cd -
build:
commands:
- npm install
- npm test # Run your unit tests, etc
- ./tmp/snyk-jira-sync-linux -orgID="${SNYK_ORG_ID}" -token="${SNYK_TOKEN}" -jiraProjectID="${JIRA_PROJECT_ID}" -severity=high