Skip to content

Commit

Permalink
Added snyk token variable (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bama4 committed Feb 16, 2021
1 parent 4f7c17d commit 433b761
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
version: 2.1
orbs:
snyk: snyk/[email protected]
workflows:
build:
jobs:
- build:
context:
- snyk_api
jobs:
build:
docker:
Expand Down Expand Up @@ -92,11 +98,15 @@ jobs:
#- run: coverage report # output to stdout.
#- run: coverage xml # generate report artifact coverage.xml.
#- run: coverage html # generate report artifact htmlcov/*.

# Snyk Scan
- snyk/scan:
docker-image-name: $IMAGE_NAME

- store_artifacts:
path: coverage.xml
- store_artifacts:
path: htmlcov

# Snyk Scan
- snyk/scan:
token-variable: SNYK_API_TOKEN
monitor-on-build: true
project: '${CIRCLE_PROJECT_REPONAME}/${CIRCLE_PROJECT_REPONAME}'
target-file: requirements.txt

0 comments on commit 433b761

Please sign in to comment.