From c2ee863f917533b1ea91bb69007120bfe57da551 Mon Sep 17 00:00:00 2001 From: stark Date: Wed, 1 Mar 2023 09:31:44 +0800 Subject: [PATCH] fix trivy scan timeout --- .github/workflows/pull-request.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 02f032e..28e2104 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -107,10 +107,13 @@ jobs: --value-set tag=kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }} \ --value-set platform=linux/amd64 - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@0.2.0 + uses: aquasecurity/trivy-action@master + env: + TRIVY_OFFLINE_SCAN: true if: github.event_name == 'pull_request' with: image-ref: 'kubespheredev/ks-jenkins:${{ steps.build_env.outputs.version }}' + timeout: 10m format: 'table' exit-code: '1' ignore-unfixed: true