Skip to content

Commit 22f6d5e

Browse files
authored
feat(auth): added option to retrieve scopd github-app token (#70)
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 3260f5f commit 22f6d5e

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

ci-jobs/bot-credentials/action.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,23 @@ inputs:
102102
103103
Required when enable-github-app is true.
104104
required: false
105+
github-app-owner:
106+
description: |
107+
GitHub organization or user that owns the target repository.
108+
109+
When specified, the token is scoped to repositories owned by this entity
110+
instead of the current repository's installation.
111+
112+
Optional. Only needed for cross-repo token scoping.
113+
required: false
114+
github-app-repositories:
115+
description: |
116+
Comma-separated list of repository names to scope the token to.
117+
118+
Used together with github-app-owner for cross-repo access.
119+
120+
Optional. Only needed for cross-repo token scoping.
121+
required: false
105122

106123
outputs:
107124
app-token:
@@ -154,6 +171,8 @@ runs:
154171
with:
155172
app-id: ${{ inputs.github-app-id }}
156173
private-key: ${{ inputs.github-app-private-key }}
174+
owner: ${{ inputs.github-app-owner }}
175+
repositories: ${{ inputs.github-app-repositories }}
157176

158177
branding:
159178
icon: 'key'

0 commit comments

Comments
 (0)