diff --git a/.circleci/config.yml b/.circleci/config.yml index 8a4e4b44..a8356715 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,6 +3,12 @@ version: 2.1 orbs: snyk: snyk/snyk@0.0.13 +workflows: + build: + jobs: + - build: + context: + - snyk_api jobs: build: docker: @@ -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