mirror of
https://github.com/finos/SymphonyElectron.git
synced 2026-10-25 14:20:04 -05:00
update snyk to use org for builds
Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
This commit is contained in:
1 parent
5e5e5414b9
commit
7dd257ca39
4 files changed
+14
-10
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
NODE_REQUIRED_VERSION=v12.13.1
|
||||
SNYK_API_TOKEN=885953dc-9469-443c-984d-524352d54116
|
||||
SNYK_ORG=sda
|
||||
|
||||
if ! [ -x "$(command -v git)" ]; then
|
||||
echo 'GIT does not exist! Please set it up before running this script!' >&2
|
||||
@@ -42,7 +42,8 @@ fi
|
||||
if ! [ -x "$(command -v snyk)" ]; then
|
||||
echo 'Snyk does not exist! Installing and setting it up' >&2
|
||||
npm install -g snyk
|
||||
snyk config set api=$SNYK_API_TOKEN
|
||||
snyk config set org="$SNYK_ORG"
|
||||
snyk config set api="$SNYK_API_TOKEN"
|
||||
fi
|
||||
|
||||
if [ -z "$PARENT_BUILD_VERSION" ]; then
|
||||
@@ -67,7 +68,7 @@ npm install
|
||||
|
||||
# Run Snyk Security Tests
|
||||
echo "Running snyk security tests"
|
||||
snyk test --file=package.json
|
||||
snyk test --file=package-lock.json --org="$SNYK_ORG"
|
||||
|
||||
# replace url in config
|
||||
echo "Setting default pod url to https://corporate.symphony.com"
|
||||
|
||||
Reference in new issue
Block a user