diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 643793d7..1dae00d6 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9c6b658..4d50026c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ on: inputs: run-trivy-scan: description: 'Run Trivy scan ?' - default: false + default: true required: false type: boolean