File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 35
35
36
36
- name : Get GitHub App User ID
37
37
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"
39
41
env :
40
42
GH_TOKEN : ${{ steps.app-token.outputs.token }}
41
43
RUNGHA_APP_SLUG : ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
@@ -48,12 +50,12 @@ jobs:
48
50
RUNGHA_APP_SLUG : ${{ steps.app-token.outputs.app-slug }} # just for defense against script injection
49
51
RUNGHA_USER_ID : ${{ steps.get-user-id.outputs.user-id }} # just for defense against script injection
50
52
51
- - name : Debug App permissions
53
+ - name : Debug App installation token
52
54
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 '
55
57
echo
56
- echo "➡️ Accès direct au repo ci-cd-test :"
58
+ echo "➡️ Vérification accès à ci-cd-test :"
57
59
gh api /repos/gridsuite/ci-cd-test || echo "❌ Pas d'accès"
58
60
env :
59
61
GH_TOKEN : ${{ steps.app-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments