Skip to content

Commit

Permalink
Add docker username and password to secrets workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Türken <[email protected]>
  • Loading branch information
turkenf committed Oct 1, 2024
1 parent 5747082 commit 26affd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
TOKEN:
description: 'Github token to use, optional'
required: false
DOCKER_USR:
description: 'Docker username'
required: false
DOCKER_PSW:
description: 'Docker password'
required: false

env:
DOCKER_USR: ${{ secrets.DOCKER_USR }}
Expand Down Expand Up @@ -154,4 +160,4 @@ jobs:
with:
sarif_file: 'trivy-results.sarif'
category: ${{ matrix.image }}:${{ env.tag }}

token: ${{ secrets.TOKEN || secrets.GITHUB_TOKEN }}

0 comments on commit 26affd8

Please sign in to comment.