lhotari commented on code in PR #25372:
URL: https://github.com/apache/pulsar/pull/25372#discussion_r2976404440
##########
.github/workflows/pulsar-ci.yaml:
##########
@@ -996,25 +996,25 @@ jobs:
- name: Check binary licenses
run: src/check-binary-license.sh
./distribution/server/target/apache-pulsar-*-bin.tar.gz &&
src/check-binary-license.sh
./distribution/shell/target/apache-pulsar-shell-*-bin.tar.gz
-# - name: Run Trivy container scan
-# id: trivy_scan
-# uses: aquasecurity/[email protected]
-# if: ${{ github.repository == 'apache/pulsar' && github.event_name !=
'pull_request' }}
-# continue-on-error: true
-# with:
-# image-ref: "apachepulsar/pulsar:latest"
-# scanners: vuln
-# severity: CRITICAL,HIGH,MEDIUM,LOW
-# limit-severities-for-sarif: true
-# format: 'sarif'
-# output: 'trivy-results.sarif'
-#
-# - name: Upload Trivy scan results to GitHub Security tab
-# uses: github/codeql-action/upload-sarif@v3
-# if: ${{ steps.trivy_scan.outcome == 'success' && github.repository ==
'apache/pulsar' && github.event_name != 'pull_request' }}
-# continue-on-error: true
-# with:
-# sarif_file: 'trivy-results.sarif'
+ - name: Run Trivy container scan
+ id: trivy_scan
+ uses: aquasecurity/[email protected]
Review Comment:
I created this trivy feature request which could help getting it approved:
https://github.com/aquasecurity/trivy/discussions/10439.
In the meantime we could fork the trivy actions and add them to
apache/pulsar-test-infra and implement the improved install.sh script with a
hash check to prevent tampering.
aquasecurity/trivy-action uses aquasecurity/setup-trivy under the covers.
It's not very hard to make copies to apache/pulsar-test-infra and modify the
install.sh part.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]