From b27f9c8dce7d0e09ae191dcb00562abf97faa806 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Sun, 20 Jan 2019 12:33:29 +0800 Subject: ci: Add snyk (#425) --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to '.circleci') diff --git a/.circleci/config.yml b/.circleci/config.yml index 69b0db0..b069ec3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,13 @@ commands: else make test-short fi + install_npm: + steps: + - run: + name: Install npm + command: | + curl -sL https://deb.nodesource.com/setup_11.x | sudo bash - + sudo apt-get install -y nodejs executors: go1_11: @@ -96,9 +103,32 @@ jobs: - init_workspace - run: make + snyk: + executor: go1_11 + steps: + - init_workspace + - install_npm + - run: sudo npm install -g snyk + - run: snyk auth $SNYK_APIKEY_JHU + - run: snyk monitor --org=dexon-foundation --project=dexon-consensus + workflows: version: 2.1 + nightly: + jobs: + - dep + - snyk: + requires: + - dep + triggers: + - schedule: + cron: "0 8 * * *" + filters: + branches: + only: + - master + test_and_build: jobs: - dep -- cgit v1.2.3