From bbca0bb4e86d22fc78efcf4a659d37d3d96a3e92 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira da Silva Date: Fri, 27 Jan 2023 03:42:36 -0300 Subject: [PATCH] Snyk workflow failing when running the checks against the Operator (#16653) Resolves #16622 --- .github/workflows/snyk-analysis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snyk-analysis.yml b/.github/workflows/snyk-analysis.yml index 02140f04c6..9f5896df45 100644 --- a/.github/workflows/snyk-analysis.yml +++ b/.github/workflows/snyk-analysis.yml @@ -34,7 +34,9 @@ jobs: sarif_file: quarkus-report.sarif - name: Check for vulnerabilities in Operator - run: snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --sarif-file-output=operator-report.sarif operator + run: | + mvn -Poperator -pl operator -am -DskipTests clean install + snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --sarif-file-output=operator-report.sarif operator continue-on-error: true env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}