Skip to content

Commit 4e89de9

Browse files
committed
debug: list accessible apps to diagnose token/app mismatch
1 parent cf64e62 commit 4e89de9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

scripts/e2e-test.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,18 @@ trap cleanup EXIT
102102
if [[ -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
}

0 commit comments

Comments
 (0)