Skip to content

Commit bbce01e

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

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/prepare-release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535

3636
- name: Get GitHub App User ID
3737
id: get-user-id
38-
run: echo "user-id=$(gh api "/users/${RUNGHA_APP_SLUG}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
38+
run: |
39+
echo gh api "/users/${RUNGHA_APP_SLUG}[bot]"
40+
echo "user-id=$(gh api "/users/${RUNGHA_APP_SLUG}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
3941
env:
4042
GH_TOKEN: ${{ steps.app-token.outputs.token }}
4143
RUNGHA_APP_SLUG: ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
@@ -48,12 +50,12 @@ jobs:
4850
RUNGHA_APP_SLUG: ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
4951
RUNGHA_USER_ID: ${{ steps.get-user-id.outputs.user-id }} # just for defense against script injection
5052

51-
- name: Debug App permissions
53+
- name: Debug App installation token
5254
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 "➡️ Repos accessibles par cette installation :"
56+
gh api /installation/repositories --jq '.repositories[].full_name'
5557
echo
56-
echo "➡️ Accès direct au repo ci-cd-test :"
58+
echo "➡️ Vérification accès à ci-cd-test :"
5759
gh api /repos/gridsuite/ci-cd-test || echo "❌ Pas d'accès"
5860
env:
5961
GH_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)