Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass GitHub token for Trivy DB download #249

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build_test_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ jobs:
format: sarif
output: "${{ steps.publish-image.outputs.image-name }}.sarif"
# turn off secret scanning to speed things up
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
Expand All @@ -113,6 +115,8 @@ jobs:
exit-code: '1'
severity: 'CRITICAL'
ignore-unfixed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Write matrix outputs
uses: cloudposse/github-action-matrix-outputs-write@0.4.2
Expand Down
Loading