Skip to content

Commit 56a5a6c

Browse files
ci: add github token as environment variable to trivy scanning job
1 parent d38ed40 commit 56a5a6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/node.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ jobs:
232232
- name: Trivy scanning
233233
if: steps.check-build-and-push.outputs.enable == 'true' && steps.check-ghcr.outputs.enable == 'true' && steps.ghcr-tag.outputs.tags != 0
234234
uses: aquasecurity/[email protected]
235+
env:
236+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
235237
with:
236238
image-ref: "${{ steps.trivy-image.outputs.image }}"
237239
format: "table"

0 commit comments

Comments
 (0)