From 5af17f03f7c1c7f4583f28e4fdef845eb4a2c846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 30 Sep 2024 15:30:55 +0300 Subject: [PATCH] Add github bot token to scan workflow as optional 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index c5be539..f3abf74 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -10,6 +10,10 @@ on: description: 'Number of supported releases' type: number default: 1 + secrets: + TOKEN: + description: 'Github token to use, optional' + required: false env: DOCKER_USR: ${{ secrets.DOCKER_USR }} @@ -26,7 +30,7 @@ jobs: uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 with: fetch-depth: 0 - token: ${{ secrets.UPBOUND_GITHUB_BOT_TOKEN }} + token: ${{ secrets.TOKEN || secrets.GITHUB_TOKEN }} - name: Get Last Release id: get-releases