Skip to content

Commit

Permalink
Merge pull request #26 from snyk/fix/update-integration-name
Browse files Browse the repository at this point in the history
set SNYK_INTEGRATION_NAME to CIRCLECI_ORB
  • Loading branch information
maxjeffos authored Aug 28, 2020
2 parents 9e16a37 + c403279 commit d3432de
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commands/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ steps:
# install snyk
- run:
name: Download Snyk CLI
environment:
SNYK_INTEGRATION_NAME: CIRCLECI_ORB
command: |
if [[ ! -x "/usr/local/bin/snyk" ]]; then
if [[ "<<parameters.os>>" == "alpine" && "<<parameters.install-alpine-dependencies>>" == "true" ]]; then
Expand All @@ -79,11 +81,15 @@ steps:
steps:
- run:
name: "Run Snyk protect to apply patches from .snyk file"
environment:
SNYK_INTEGRATION_NAME: CIRCLECI_ORB
command: |
snyk protect <<parameters.additional-arguments>>
# snyk test
- run:
name: "Run Snyk test to scan app for vulnerabilities"
environment:
SNYK_INTEGRATION_NAME: CIRCLECI_ORB
command: >
snyk test
<<#parameters.docker-image-name>>--docker <<parameters.docker-image-name>><</parameters.docker-image-name>>
Expand All @@ -98,6 +104,8 @@ steps:
steps:
- run:
name: "Run Snyk monitor for continuous monitoring on snyk.io"
environment:
SNYK_INTEGRATION_NAME: CIRCLECI_ORB
command: >
snyk monitor
<<#parameters.docker-image-name>>--docker <<parameters.docker-image-name>><</parameters.docker-image-name>>
Expand Down

0 comments on commit d3432de

Please sign in to comment.