Skip to content

Commit 7baa2f1

Browse files
author
Sreeparna Deb
committed
fixing GitHub App token Auth
1 parent ab83ab0 commit 7baa2f1

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/update_plugininfo.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,17 @@ jobs:
5050
run: |
5151
curl -s -H "Authorization: Bearer ${APP_TOKEN}" -H "Accept: application/vnd.github+json" \
5252
https://api.github.com/installation/repositories | jq -r '.repositories[].full_name'
53-
54-
# quick sanity: token can read the repo
55-
- name: Sanity check token can read website repo
53+
54+
- name: Can token read repo via REST?
5655
env:
5756
APP_TOKEN: ${{ steps.app_token.outputs.token }}
5857
run: |
59-
git ls-remote https://x-access-token:${APP_TOKEN}@github.com/ManiVaultStudio/manivaultstudio.github.io.git HEAD
58+
set -e
59+
curl -sfL -H "Authorization: Bearer ${APP_TOKEN}" \
60+
-H "Accept: application/vnd.github+json" \
61+
https://api.github.com/repos/ManiVaultStudio/manivaultstudio.github.io \
62+
| jq '.full_name,.private'
63+
echo "✅ REST access OK"
6064
6165
# clone with the app token (note the x-access-token:<token>@ form)
6266
- name: Clone manivaultstudio.github.io (feature branch)

0 commit comments

Comments
 (0)