From 6c6e30872e040ab3530ca7706874a583a692e522 Mon Sep 17 00:00:00 2001 From: slatersnyk <102258025+slatersnyk@users.noreply.github.com> Date: Thu, 14 Jul 2022 13:25:37 -0400 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f6688708dc..d697e1b851 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,12 +1,23 @@ -version: '2.1' -orbs: - snyk: snyk/snyk@1.2.3 -jobs: - build: - docker: - - image: 'cimg/node:lts' - steps: - - checkout - - run: npm ci - - snyk/scan -workflows: null +version: 2 # use CircleCI 2.0 +jobs: # a collection of steps + build: # runs not using Workflows must have a `build` job as entry point + working_directory: ~/goof # directory where steps will run + docker: # run the steps with Docker + - image: circleci/node # ...with this image as the primary container; this is where all `steps` will run + steps: # a collection of executable commands + - checkout # special step to check out source code to working directory + - run: + name: update-npm + command: 'sudo npm install -g npm@latest' + - run: + name: install-snyk + command: 'sudo npm install -g snyk' + - run: # run snyk help - test snyk is installed and working + name: snyk-help + command: snyk --help + - run: # run snyk auth - authenticate snyk use environment variables to add token + name: snyk auth + command: snyk auth $SNYK_TOKEN + - run: # run snyk test - run snyk test + name: snyk test + command: snyk test