[CI] Re-enable Trivy scan in ci-pr.yml
Also set scan by default in ci.yml
This commit is contained in:
7
.github/workflows/ci-pr.yml
vendored
7
.github/workflows/ci-pr.yml
vendored
@@ -99,9 +99,14 @@ jobs:
|
||||
-PspringPulsarVersion="$VERSION" \
|
||||
-PspringBootVersion="$BOOT_VERSION" \
|
||||
: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
|
||||
|
||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -10,7 +10,7 @@ on:
|
||||
inputs:
|
||||
run-trivy-scan:
|
||||
description: 'Run Trivy scan ?'
|
||||
default: false
|
||||
default: true
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user