File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,8 +102,18 @@ trap cleanup EXIT
102102if [[ -z " $KURL_INSTALLER_ID " ]]; then
103103 echo " === Fetching kURL installer ID ==="
104104
105+ # Verify token works and list accessible apps for diagnostics
106+ ACCESSIBLE_APPS=$( replicated --token " $REPLICATED_TOKEN " app ls --output json 2> /dev/null | jq -r ' .[].slug' || true)
107+ if [[ -z " $ACCESSIBLE_APPS " ]]; then
108+ echo " ERROR: REPLICATED_API_TOKEN does not appear to have access to any apps."
109+ echo " Please verify the token is configured correctly in the repository secrets."
110+ exit 1
111+ fi
112+ echo " Accessible apps: $ACCESSIBLE_APPS "
113+
105114 INSTALLER_JSON=$( replicated --token " $REPLICATED_TOKEN " --app " $REPLICATED_APP " installer ls --output json) || {
106115 echo " ERROR: failed to list installers for app '$REPLICATED_APP '"
116+ echo " Accessible apps for this token: $ACCESSIBLE_APPS "
107117 echo " Hint: verify REPLICATED_API_TOKEN has access to the '$REPLICATED_APP ' app."
108118 exit 1
109119 }
You can’t perform that action at this time.
0 commit comments