From 30560c9be693b20b09dcc5f10592a0b298036871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Zoungrana?= Date: Wed, 1 Mar 2023 17:44:44 +0000 Subject: [PATCH 1/3] Add option to ignore out of sync lock files --- .github/workflows/sbt-node-snyk.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sbt-node-snyk.yml b/.github/workflows/sbt-node-snyk.yml index 5484c17..b44a09f 100644 --- a/.github/workflows/sbt-node-snyk.yml +++ b/.github/workflows/sbt-node-snyk.yml @@ -67,6 +67,11 @@ on: type: string required: false description: comma-separated list of key/value pairs for project tags, e.g. "team=devex,fun=true" + IGNORE_OUT_OF_SYNC: + type: boolean + required: false + default: false + description: Set this to true to ignore out of sync errors (for npm and yarn projects) secrets: SNYK_TOKEN: required: true @@ -145,6 +150,7 @@ jobs: snyk monitor \ ${DEBUG_OPTION} \ ${PRUNE_OPTION} \ + ${OUT_OF_SYNC_OPTION} \ --all-projects \ $([[ ${PYTHON_VERSION:0:2} == 3. ]] && echo "--command=python3") \ --org="${{ inputs.ORG }}" \ @@ -156,3 +162,4 @@ jobs: PRUNE_OPTION: ${{ inputs.PRUNE_DUPLICATES == true && '-p' || '' }} PYTHON_VERSION: ${{inputs.PYTHON_VERSION}} PROJECT_TAGS: ${{inputs.PROJECT_TAGS}} + OUT_OF_SYNC_OPTION: ${{ inputs.IGNORE_OUT_OF_SYNC == 'true' && --strict-out-of-sync=false || '' }} From c8672245589d31dcb4362aba50719b08db4262ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Zoungrana?= Date: Wed, 1 Mar 2023 18:01:18 +0000 Subject: [PATCH 2/3] Fixed mistake --- .github/workflows/sbt-node-snyk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sbt-node-snyk.yml b/.github/workflows/sbt-node-snyk.yml index b44a09f..914c4d7 100644 --- a/.github/workflows/sbt-node-snyk.yml +++ b/.github/workflows/sbt-node-snyk.yml @@ -162,4 +162,4 @@ jobs: PRUNE_OPTION: ${{ inputs.PRUNE_DUPLICATES == true && '-p' || '' }} PYTHON_VERSION: ${{inputs.PYTHON_VERSION}} PROJECT_TAGS: ${{inputs.PROJECT_TAGS}} - OUT_OF_SYNC_OPTION: ${{ inputs.IGNORE_OUT_OF_SYNC == 'true' && --strict-out-of-sync=false || '' }} + OUT_OF_SYNC_OPTION: ${{ inputs.IGNORE_OUT_OF_SYNC == 'true' && '--strict-out-of-sync=false' || '' }} From d6c24cc2e617d0a65c3bfd0c8ca9a6878461cea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Zoungrana?= Date: Thu, 2 Mar 2023 09:42:07 +0000 Subject: [PATCH 3/3] Fixed wrong type --- .github/workflows/sbt-node-snyk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sbt-node-snyk.yml b/.github/workflows/sbt-node-snyk.yml index 914c4d7..8437e50 100644 --- a/.github/workflows/sbt-node-snyk.yml +++ b/.github/workflows/sbt-node-snyk.yml @@ -162,4 +162,4 @@ jobs: PRUNE_OPTION: ${{ inputs.PRUNE_DUPLICATES == true && '-p' || '' }} PYTHON_VERSION: ${{inputs.PYTHON_VERSION}} PROJECT_TAGS: ${{inputs.PROJECT_TAGS}} - OUT_OF_SYNC_OPTION: ${{ inputs.IGNORE_OUT_OF_SYNC == 'true' && '--strict-out-of-sync=false' || '' }} + OUT_OF_SYNC_OPTION: ${{ inputs.IGNORE_OUT_OF_SYNC == true && '--strict-out-of-sync=false' || '' }}