Skip to content

Commit f2a6790

Browse files
Upgrade create-github-app-token action and add debug step
Updated GitHub App token action to version 2 and added debug step to list repositories accessible by the installation token.
1 parent 83e1ab0 commit f2a6790

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/trigger-private-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Get app token
1313
id: app-token
14-
uses: actions/create-github-app-token@v1
14+
uses: actions/create-github-app-token@v2
1515
with:
1616
app-id: ${{ secrets.IGNITEUI_GITHUB_APP_ID }}
1717
private-key: ${{ secrets.IGNITEUI_GITHUB_APP_PRIVATE_KEY }}
@@ -26,6 +26,13 @@ jobs:
2626
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
2727
-H "Accept: application/vnd.github+json" \
2828
https://api.github.com/rate_limit
29+
30+
- name: Debug: list repos visible to installation token
31+
run: |
32+
curl -sS \
33+
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
34+
-H "Accept: application/vnd.github+json" \
35+
https://api.github.com/installation/repositories | jq -r '.repositories[].full_name'
2936
3037
- name: Send repository dispatch to private repo
3138
uses: peter-evans/repository-dispatch@v3

0 commit comments

Comments
 (0)