File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,13 @@ runs:
215215 fi
216216 fi
217217
218- # Method 2: Try installation endpoint (works for GitHub App tokens)
218+ # Method 2: Try /app endpoint (works for GitHub App tokens)
219219 if [ -z "$BOT_LOGIN" ]; then
220- if INSTALLATION_DATA =$(gh api "repos/$GITHUB_REPOSITORY/installation" 2>/dev/null); then
221- APP_SLUG=$(echo "$INSTALLATION_DATA " | jq -r '.app_slug // empty' 2>/dev/null)
220+ if APP_DATA =$(gh api app 2>/dev/null); then
221+ APP_SLUG=$(echo "$APP_DATA " | jq -r '.slug // empty' 2>/dev/null)
222222 if [ -n "$APP_SLUG" ] && [ "$APP_SLUG" != "null" ]; then
223223 BOT_LOGIN="${APP_SLUG}[bot]"
224- echo "Detected bot via installation endpoint: $BOT_LOGIN"
224+ echo "Detected bot via /app endpoint: $BOT_LOGIN"
225225 fi
226226 fi
227227 fi
You can’t perform that action at this time.
0 commit comments