Skip to content

Commit 470a088

Browse files
author
LE SAULNIER Kevin
committed
debug: token permission
Signed-off-by: LE SAULNIER Kevin <[email protected]>
1 parent 4679b03 commit 470a088

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/prepare-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ jobs:
4848
RUNGHA_APP_SLUG: ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
4949
RUNGHA_USER_ID: ${{ steps.get-user-id.outputs.user-id }} # just for defense against script injection
5050

51+
- name: Debug App permissions
52+
run: |
53+
echo "➡️ Installations visibles par ce token :"
54+
gh api /user/installations --jq '.installations[] | {account: .account.login, repos: .repository_selection, permissions: .permissions}'
55+
echo
56+
echo "➡️ Accès direct au repo ci-cd-test :"
57+
gh api /repos/gridsuite/ci-cd-test || echo "❌ Pas d'accès"
58+
env:
59+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
60+
5161
- name: Load repo list from file or input
5262
id: load_repos
5363
run: |

0 commit comments

Comments
 (0)