File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments