Skip to content

Commit 84d21cc

Browse files
committed
dbeaver/dbeaver-devops#2023 Add token input and use it for repo checkout
1 parent 4f80187 commit 84d21cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prepare-custom-p2/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ inputs:
55
repo:
66
description: "The repository to check out the custom p2 from"
77
required: true
8+
token:
9+
default: ${{ github.token }}
10+
description: "A GitHub token to use for cloning repositories"
811

912
outputs:
1013
p2-found:
@@ -36,7 +39,7 @@ runs:
3639
uses: dbeaver/github-actions/checkout-with-deps@dbeaver/dbeaver-devops#2023-custom-p2 # CHANGEME after PR approval
3740
if: ${{ steps.find-p2.outputs.p2-found == 'true' }}
3841
with:
39-
token: ${{ secrets.GITHUB_TOKEN }}
42+
token: ${{ inputs.token }}
4043
owner: ${{ github.repository_owner }}
4144
repo: ${{ inputs.repo }}
4245
ref: ${{ github.head_ref }}

0 commit comments

Comments
 (0)