[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.
This commit is contained in:
Chris Bono
2024-10-15 17:53:00 -05:00
parent c469fc3b33
commit 3ad7235a87

View File

@@ -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