Skip to content

Commit

Permalink
[CI] Add github-pat to trivy-scan.yml
Browse files Browse the repository at this point in the history
Adds Github token to the trivy scan in an effort to prevent the
recent CI failures due to TOOMANYREQUESTS on downloading the Trivy
db.

(cherry picked from commit 3ad7235)
  • Loading branch information
onobc committed Oct 16, 2024
1 parent 3233f93 commit 8f77218
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
scan-type: 'fs'
scan-ref: '${{ env.LOCAL_REPOSITORY_PATH }}/org/springframework/pulsar'
trivy-config: ${{ inputs.config-path }}
github-pat: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
- name: Upload Trivy scan results to GitHub Security tab
if: inputs.upload-results
uses: github/codeql-action/upload-sarif@v3
Expand Down

0 comments on commit 8f77218

Please sign in to comment.