Skip to content

Commit

Permalink
Added snyk scan command to circleci build (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bama4 committed Feb 15, 2021
1 parent f143b3f commit 5a2c90c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# A CircleCI configuration file because we do continuous integration testing!

version: 2

version: 2.1
orbs:
snyk: snyk/[email protected]
jobs:
build:
docker:
Expand Down Expand Up @@ -91,6 +92,10 @@ 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:
Expand Down

0 comments on commit 5a2c90c

Please sign in to comment.