You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2026/07/22 10:02:36 UTC
(pulsar) 01/15: [improve][ci] Replace trivy-action with sandboxed-trivy-action (#25480)
This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 4df27be00aee0db57f12576679c9041305dbc901
Author: Lari Hotari <lh...@users.noreply.github.com>
AuthorDate: Tue Apr 7 18:27:59 2026 +0300
[improve][ci] Replace trivy-action with sandboxed-trivy-action (#25480)
(cherry picked from commit 2394bb10a874c65207d1cc68cff0b8e882e0faf8)
---
.github/workflows/pulsar-ci.yaml | 39 ++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)
diff --git a/.github/workflows/pulsar-ci.yaml b/.github/workflows/pulsar-ci.yaml
index bc572f31de8a..9aa75f87417f 100644
--- a/.github/workflows/pulsar-ci.yaml
+++ b/.github/workflows/pulsar-ci.yaml
@@ -988,25 +988,26 @@ 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/trivy-action@v0.35.0
-# 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: lhotari/sandboxed-trivy-action@555963036b2012b44c1071508a236e569db28ebb
+ if: ${{ github.repository == 'apache/pulsar' && github.event_name != 'pull_request' }}
+ continue-on-error: true
+ with:
+ scan-type: 'image'
+ scan-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@v4
+ 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: Clean up disk space
if: ${{ matrix.base.save_artifact }}