From b6619067e52fa47afd45edc8a63f8cb22201f8c5 Mon Sep 17 00:00:00 2001 From: Sam Hession Date: Fri, 4 Feb 2022 12:00:43 +0000 Subject: [PATCH] rearranges cli arguments --- .github/workflows/sbt-node-snyk.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sbt-node-snyk.yml b/.github/workflows/sbt-node-snyk.yml index adebbb7..f39028c 100644 --- a/.github/workflows/sbt-node-snyk.yml +++ b/.github/workflows/sbt-node-snyk.yml @@ -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: @@ -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 }}