Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slatersnyk authored Jul 14, 2022
1 parent 384c8a1 commit 6c6e308
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6c6e308

Please sign in to comment.