Skip to content

Commit

Permalink
fix trivy scan timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
chilianyi committed Mar 1, 2023
1 parent 6b007b5 commit c2ee863
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit c2ee863

Please sign in to comment.