Skip to content

Commit

Permalink
[CI] Re-enable Trivy scan in ci-pr.yml
Browse files Browse the repository at this point in the history
Also set scan by default in ci.yml
  • Loading branch information
onobc committed Nov 22, 2024
1 parent 9834edc commit a73d01e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,14 @@ jobs:
-PspringBootVersion="$BOOT_VERSION" \
-PsampleTests \
:runAllSampleTests
scan:
needs: [prerequisites]
if: needs.prerequisites.outputs.runjobs
uses: ./.github/workflows/trivy-scan.yml

done:
runs-on: ubuntu-latest
needs: [ build_and_verify, check_samples ]
needs: [ build_and_verify, check_samples, scan ]
steps:
- name: 'Done'
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
inputs:
run-trivy-scan:
description: 'Run Trivy scan ?'
default: false
default: true
required: false
type: boolean

Expand Down

0 comments on commit a73d01e

Please sign in to comment.