Skip to content

Commit

Permalink
Merge pull request #221 from turkenf/add-optional-bot-token
Browse files Browse the repository at this point in the history
Add github bot token to scan workflow as optional
  • Loading branch information
turkenf authored Sep 30, 2024
2 parents f7a369c + 5af17f0 commit 5747082
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 5747082

Please sign in to comment.