Skip to content

Commit 3ad7235

Browse files
committed
[CI] Add github-pat to trivy-scan.yml
Adds Github token to the trivy scan in an effort to prevent the recent CI failures due to TOOMANYREQUESTS on downloading the Trivy db.
1 parent c469fc3 commit 3ad7235

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/trivy-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
scan-type: 'fs'
4545
scan-ref: '${{ env.LOCAL_REPOSITORY_PATH }}/org/springframework/pulsar'
4646
trivy-config: ${{ inputs.config-path }}
47+
github-pat: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
4748
- name: Upload Trivy scan results to GitHub Security tab
4849
if: inputs.upload-results
4950
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)