Skip to content

Commit 96b574f

Browse files
Add optional input github token
1 parent 4c82755 commit 96b574f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/reusable_build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build the application for all devices and upload the artifact
22

33
on:
44
workflow_call:
5+
secrets:
6+
token:
7+
description: 'A token passed from the caller workflow'
8+
required: false
59
inputs:
610
app_repository:
711
description: 'The GIT repository to build (defaults to `github.repository`)'
@@ -58,6 +62,11 @@ on:
5862
required: false
5963
default: ""
6064
type: string
65+
token:
66+
description: 'Optional token for authentication'
67+
required: false
68+
default: ${{ github.token }}
69+
type: string
6170

6271
jobs:
6372
call_get_app_metadata:
@@ -89,6 +98,7 @@ jobs:
8998
repository: ${{ inputs.app_repository }}
9099
ref: ${{ inputs.app_branch_name }}
91100
submodules: recursive
101+
token: ${{ secrets.token }}
92102

93103
- name: Build application
94104
id: "build"

0 commit comments

Comments
 (0)