Skip to content

Commit

Permalink
fix: pass ACTIONS_RUNTIME_TOKEN to Trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Sep 30, 2024
1 parent a0a5ba5 commit b0447b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/build-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ inputs:
description: The password to use for the registry
required: false
default: ${{ github.token }}
auth_token:
description: The token to authenticate with GitHub
required: false
default: ${{ github.token }}
runs:
using: composite
steps:
Expand Down Expand Up @@ -131,6 +135,8 @@ runs:
uses: docker://aquasec/trivy:0.55.2
with:
args: image --format json --ignore-unfixed --vuln-type os ${{ inputs.primaryTag }} --output trivy.json
env:
ACTIONS_RUNTIME_TOKEN: ${{ inputs.auth_token }}

- name: Print report
uses: docker://aquasec/trivy:0.55.2
Expand Down

0 comments on commit b0447b4

Please sign in to comment.