Skip to content

Commit

Permalink
rearranges cli arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
SHession committed Feb 4, 2022
1 parent 9b44635 commit b661906
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/sbt-node-snyk.yml
Expand Up @@ -24,10 +24,6 @@ jobs:
- name: Checkout branch
uses: actions/checkout@v2

- name: Setup debug var
run: echo INPUT_DEBUG=${{ inputs.DEBUG }} >> $GITHUB_ENV
shell: bash

- uses: snyk/actions/setup@0.3.0
- uses: actions/setup-node@v2
with:
Expand All @@ -38,7 +34,13 @@ jobs:
java-version: ${{ inputs.JAVA_VERSION }}
distribution: "adopt"

- name: Output debug var
run: echo ${INPUT_DEBUG:+ -d} $INPUT_DEBUG
env:
INPUT_DEBUG: ${{ inputs.DEBUG }}

- name: Snyk monitor
run: snyk monitor --all-projects ${INPUT_DEBUG:+ -d} --org="${{ inputs.ORG }}"
run: snyk monitor ${INPUT_DEBUG:+ -d} --all-projects --org="${{ inputs.ORG }}"
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
INPUT_DEBUG: ${{ inputs.DEBUG }}

0 comments on commit b661906

Please sign in to comment.