Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demobranch #514

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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
name: snyk auth
command: snyk auth $SNYK_TOKEN
- run: # run snyk test - run snyk test to fail build
name: snyk test
command: snyk test
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const snyk = require('@snyk/nodejs-runtime-agent')
snyk({
projectId: process.env.SNYK_PROJECT_ID,
projectId: '3ceb01b1-fa9a-476c-9cb9-891a73a24a7a',
});

// mongoose setup
Expand Down
107 changes: 103 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"ms": "^0.7.1",
"npmconf": "0.0.24",
"optional": "^0.1.3",
"pg": "^7.1.0",
"st": "0.2.4",
"stream-buffers": "^3.0.1",
"tap": "^5.7.0"
Expand Down