Skip to content

Commit

Permalink
Pass GitHub token for Trivy DB download (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor authored Sep 26, 2024
1 parent 19390d4 commit edc2290
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit edc2290

Please sign in to comment.