File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,23 @@ jobs:
108108 export JG_VER="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)-$(git rev-parse --short HEAD)"
109109 echo "JG_VER=${JG_VER}" >> $GITHUB_ENV
110110 - name : Run Trivy vulnerability scanner
111+ id : trivy_scan_step
111112 if : github.repository == 'janusgraph/janusgraph'
112- uses : aquasecurity/trivy-action@0.24.0
113+ # TODO: currently this step is tentative because of the rate-limiting issue.
114+ # Thus, we add `continue-on-error: true` here, but we should remove it
115+ # when either the issue is fixed (see: https://github.com/aquasecurity/trivy-action/issues/389)
116+ # or we self-host trivy database.
117+ uses : aquasecurity/trivy-action@0.28.0
118+ continue-on-error : true
113119 with :
114120 image-ref : ' ghcr.io/janusgraph/janusgraph:${{ env.JG_VER }}${{ matrix.tag_suffix }}'
115121 format : ' sarif'
116122 output : ' trivy-results.sarif'
123+ env :
124+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125+ ACTIONS_RUNTIME_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117126 - name : Upload Trivy scan results to GitHub Security tab
118- if : github.repository == 'janusgraph/janusgraph'
127+ if : github.repository == 'janusgraph/janusgraph' && success() && steps.trivy_scan_step.outcome == 'success'
119128 uses : github/codeql-action/upload-sarif@v3
120129 with :
121130 sarif_file : ' trivy-results.sarif'
You can’t perform that action at this time.
0 commit comments