From 26affd8828e136e4777abea8547a63cd35fa4bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 30 Sep 2024 23:23:08 +0300 Subject: [PATCH] Add docker username and password to secrets workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fatih Türken --- .github/workflows/scan.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index f3abf74..6bac022 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -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 }} @@ -154,4 +160,4 @@ jobs: with: sarif_file: 'trivy-results.sarif' category: ${{ matrix.image }}:${{ env.tag }} - + token: ${{ secrets.TOKEN || secrets.GITHUB_TOKEN }}