From 54314c1e137d901999e2cfd45c7ab5e93b0dac31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 15:19:26 +0000 Subject: [PATCH 1/3] build(deps): bump undici from 6.23.0 to 6.24.1 in /javascript-tui Bumps [undici](https://github.com/nodejs/undici) from 6.23.0 to 6.24.1. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v6.23.0...v6.24.1) --- updated-dependencies: - dependency-name: undici dependency-version: 6.24.1 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- javascript-tui/package-lock.json | 41 +++----------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/javascript-tui/package-lock.json b/javascript-tui/package-lock.json index 849ed77d1..ab72934da 100644 --- a/javascript-tui/package-lock.json +++ b/javascript-tui/package-lock.json @@ -11240,41 +11240,6 @@ "node": ">=0.10.0" } }, - "node_modules/react-devtools-core": { - "version": "4.28.5", - "resolved": "https://registry.npmjs.org/react-devtools-core/-/react-devtools-core-4.28.5.tgz", - "integrity": "sha512-cq/o30z9W2Wb4rzBefjv5fBalHU0rJGZCHAkf/RHSBWSSYwh8PlQTqqOJmgIIbBtpj27T6FIPXeomIjZtCNVqA==", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "shell-quote": "^1.6.1", - "ws": "^7" - } - }, - "node_modules/react-devtools-core/node_modules/ws": { - "version": "7.5.10", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", - "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -13240,9 +13205,9 @@ } }, "node_modules/undici": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.23.0.tgz", - "integrity": "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g==", + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.24.1.tgz", + "integrity": "sha512-sC+b0tB1whOCzbtlx20fx3WgCXwkW627p4EA9uM+/tNNPkSS+eSEld6pAs9nDv7WbY1UUljBMYPtu9BCOrCWKA==", "license": "MIT", "peer": true, "engines": { From 47e5fd0ffaf83a5d14a1e28fad0c9d45a0e0e418 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Mar 2026 15:29:53 +0000 Subject: [PATCH 2/3] fix: use DITTO_APP_ID and DITTO_PLAYGROUND_TOKEN in seed-ditto-document action The DITTO_API_KEY and DITTO_API_URL secrets were not configured in the repository, causing the curl command to fail with exit code 6 (empty host/token). Switch to the existing DITTO_APP_ID and DITTO_PLAYGROUND_TOKEN secrets, constructing the API URL as {app-id}.cloud.ditto.live. Updates the action inputs and all 5 affected workflows. https://claude.ai/code/session_01TPYeFrThWGY2KgASaZZ83D --- .github/actions/seed-ditto-document/action.yml | 12 ++++++------ .github/workflows/cpp-tui-ci.yml | 4 ++-- .github/workflows/dotnet-tui-ci.yml | 4 ++-- .github/workflows/dotnet-winforms-ci.yml | 4 ++-- .github/workflows/javascript-tui-ci.yml | 4 ++-- .github/workflows/rust-tui-ci.yml | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/actions/seed-ditto-document/action.yml b/.github/actions/seed-ditto-document/action.yml index cad09b91d..7a82a45bb 100644 --- a/.github/actions/seed-ditto-document/action.yml +++ b/.github/actions/seed-ditto-document/action.yml @@ -3,11 +3,11 @@ description: 'Creates a test document in Ditto Cloud with inverted timestamp for author: 'Ditto' inputs: - ditto-api-key: - description: 'Ditto API key for authentication' + ditto-app-id: + description: 'Ditto App ID' required: true - ditto-api-url: - description: 'Ditto API URL (e.g., cloud.ditto.live)' + ditto-playground-token: + description: 'Ditto Playground Token for authentication' required: true app-name: description: 'Name of the app/platform being tested (e.g., android-kotlin, swift, etc.)' @@ -47,7 +47,7 @@ runs: # Insert document using Ditto API v4 RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ inputs.ditto-api-key }}" \ + -H "Authorization: Bearer ${{ inputs.ditto-playground-token }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -59,7 +59,7 @@ runs: } } }" \ - "https://${{ inputs.ditto-api-url }}/api/v4/store/execute") + "https://${{ inputs.ditto-app-id }}.cloud.ditto.live/api/v4/store/execute") # Extract HTTP status code and response body (portable version) HTTP_CODE=$(echo "$RESPONSE" | tail -n1) diff --git a/.github/workflows/cpp-tui-ci.yml b/.github/workflows/cpp-tui-ci.yml index 89c5f8912..96ff5abf9 100644 --- a/.github/workflows/cpp-tui-ci.yml +++ b/.github/workflows/cpp-tui-ci.yml @@ -92,8 +92,8 @@ jobs: id: seed uses: ./.github/actions/seed-ditto-document with: - ditto-api-key: ${{ secrets.DITTO_API_KEY }} - ditto-api-url: ${{ secrets.DITTO_API_URL }} + ditto-app-id: ${{ secrets.DITTO_APP_ID }} + ditto-playground-token: ${{ secrets.DITTO_PLAYGROUND_TOKEN }} app-name: 'cpp-tui' - name: Download and setup Ditto C++ SDK diff --git a/.github/workflows/dotnet-tui-ci.yml b/.github/workflows/dotnet-tui-ci.yml index eec13c6c8..07d1a20d0 100644 --- a/.github/workflows/dotnet-tui-ci.yml +++ b/.github/workflows/dotnet-tui-ci.yml @@ -96,8 +96,8 @@ jobs: id: seed uses: ./.github/actions/seed-ditto-document with: - ditto-api-key: ${{ secrets.DITTO_API_KEY }} - ditto-api-url: ${{ secrets.DITTO_API_URL }} + ditto-app-id: ${{ secrets.DITTO_APP_ID }} + ditto-playground-token: ${{ secrets.DITTO_PLAYGROUND_TOKEN }} app-name: 'dotnet-tui' - name: Build .NET application diff --git a/.github/workflows/dotnet-winforms-ci.yml b/.github/workflows/dotnet-winforms-ci.yml index 3a43243ed..a4e7fe1cb 100644 --- a/.github/workflows/dotnet-winforms-ci.yml +++ b/.github/workflows/dotnet-winforms-ci.yml @@ -92,8 +92,8 @@ jobs: id: seed uses: ./.github/actions/seed-ditto-document with: - ditto-api-key: ${{ secrets.DITTO_API_KEY }} - ditto-api-url: ${{ secrets.DITTO_API_URL }} + ditto-app-id: ${{ secrets.DITTO_APP_ID }} + ditto-playground-token: ${{ secrets.DITTO_PLAYGROUND_TOKEN }} app-name: 'dotnet-winforms' - name: Build and run integration test diff --git a/.github/workflows/javascript-tui-ci.yml b/.github/workflows/javascript-tui-ci.yml index 70f6b19be..3c859431c 100644 --- a/.github/workflows/javascript-tui-ci.yml +++ b/.github/workflows/javascript-tui-ci.yml @@ -99,8 +99,8 @@ jobs: id: seed uses: ./.github/actions/seed-ditto-document with: - ditto-api-key: ${{ secrets.DITTO_API_KEY }} - ditto-api-url: ${{ secrets.DITTO_API_URL }} + ditto-app-id: ${{ secrets.DITTO_APP_ID }} + ditto-playground-token: ${{ secrets.DITTO_PLAYGROUND_TOKEN }} app-name: 'javascript-tui' - name: Run integration test diff --git a/.github/workflows/rust-tui-ci.yml b/.github/workflows/rust-tui-ci.yml index de6e3a857..48776a1ee 100644 --- a/.github/workflows/rust-tui-ci.yml +++ b/.github/workflows/rust-tui-ci.yml @@ -112,8 +112,8 @@ jobs: id: seed uses: ./.github/actions/seed-ditto-document with: - ditto-api-key: ${{ secrets.DITTO_API_KEY }} - ditto-api-url: ${{ secrets.DITTO_API_URL }} + ditto-app-id: ${{ secrets.DITTO_APP_ID }} + ditto-playground-token: ${{ secrets.DITTO_PLAYGROUND_TOKEN }} app-name: 'rust-tui' - name: Build and run integration test From 44f5e873499c375df0cc415c2fb92fadb0544e00 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Mar 2026 16:18:18 +0000 Subject: [PATCH 3/3] fix: migrate remaining workflows from DITTO_API_KEY/URL to existing secrets Per Copilot review: 11 more workflows had inline curl calls still using the non-existent DITTO_API_KEY and DITTO_API_URL secrets. Migrate them all to DITTO_PLAYGROUND_TOKEN and construct the URL from DITTO_APP_ID. Also apply curl robustness fix from Copilot review: use -fSs instead of -s so network/DNS/TLS failures fail fast rather than producing empty responses that cause misleading HTTP_CODE parsing. Add set -euo pipefail to the reusable action. https://claude.ai/code/session_01TPYeFrThWGY2KgASaZZ83D --- .github/actions/seed-ditto-document/action.yml | 3 ++- .github/workflows/android-cpp-ci.yml | 6 +++--- .github/workflows/android-java-ci.yml | 6 +++--- .github/workflows/android-kotlin-ci.yml | 6 +++--- .github/workflows/dotnet-maui-ci.yml | 12 ++++++------ .github/workflows/flutter-ci.yml | 12 ++++++------ .github/workflows/java-server-ci.yml | 6 +++--- .github/workflows/javascript-web-ci.yml | 6 +++--- .github/workflows/kotlin-multiplatform-ci.yml | 6 +++--- .github/workflows/react-native-ci.yml | 12 ++++++------ .github/workflows/react-native-expo-ci.yml | 12 ++++++------ .github/workflows/swift-ci.yml | 6 +++--- 12 files changed, 47 insertions(+), 46 deletions(-) diff --git a/.github/actions/seed-ditto-document/action.yml b/.github/actions/seed-ditto-document/action.yml index 7a82a45bb..6e1040371 100644 --- a/.github/actions/seed-ditto-document/action.yml +++ b/.github/actions/seed-ditto-document/action.yml @@ -31,6 +31,7 @@ runs: id: seed shell: bash run: | + set -euo pipefail # Generate inverted timestamp for top position in list TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) @@ -45,7 +46,7 @@ runs: echo "📝 Timestamp: ${TIMESTAMP} → Inverted: ${INVERTED_TIMESTAMP}" # Insert document using Ditto API v4 - RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ -H "Authorization: Bearer ${{ inputs.ditto-playground-token }}" \ -d "{ diff --git a/.github/workflows/android-cpp-ci.yml b/.github/workflows/android-cpp-ci.yml index baf807876..ba5fcc7eb 100644 --- a/.github/workflows/android-cpp-ci.yml +++ b/.github/workflows/android-cpp-ci.yml @@ -178,9 +178,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -192,7 +192,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/android-java-ci.yml b/.github/workflows/android-java-ci.yml index 14f3860ad..f476be1a8 100644 --- a/.github/workflows/android-java-ci.yml +++ b/.github/workflows/android-java-ci.yml @@ -170,9 +170,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -184,7 +184,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/android-kotlin-ci.yml b/.github/workflows/android-kotlin-ci.yml index 6cba4a704..e03aaa79b 100644 --- a/.github/workflows/android-kotlin-ci.yml +++ b/.github/workflows/android-kotlin-ci.yml @@ -188,9 +188,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -202,7 +202,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/dotnet-maui-ci.yml b/.github/workflows/dotnet-maui-ci.yml index 1a889e356..ff6305452 100644 --- a/.github/workflows/dotnet-maui-ci.yml +++ b/.github/workflows/dotnet-maui-ci.yml @@ -211,9 +211,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -225,7 +225,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') @@ -337,9 +337,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -351,7 +351,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/flutter-ci.yml b/.github/workflows/flutter-ci.yml index 35823b11d..2fa237f7e 100644 --- a/.github/workflows/flutter-ci.yml +++ b/.github/workflows/flutter-ci.yml @@ -434,9 +434,9 @@ jobs: echo "📝 Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -448,7 +448,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') @@ -700,9 +700,9 @@ jobs: echo "📝 Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -714,7 +714,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/java-server-ci.yml b/.github/workflows/java-server-ci.yml index 41ce59948..71012a2d5 100644 --- a/.github/workflows/java-server-ci.yml +++ b/.github/workflows/java-server-ci.yml @@ -224,9 +224,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -238,7 +238,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/javascript-web-ci.yml b/.github/workflows/javascript-web-ci.yml index 68ab1009a..e07177d54 100644 --- a/.github/workflows/javascript-web-ci.yml +++ b/.github/workflows/javascript-web-ci.yml @@ -149,9 +149,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -163,7 +163,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/kotlin-multiplatform-ci.yml b/.github/workflows/kotlin-multiplatform-ci.yml index 877299007..b1cf84527 100644 --- a/.github/workflows/kotlin-multiplatform-ci.yml +++ b/.github/workflows/kotlin-multiplatform-ci.yml @@ -372,9 +372,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -386,7 +386,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/react-native-ci.yml b/.github/workflows/react-native-ci.yml index 6293740bf..25d0141a2 100644 --- a/.github/workflows/react-native-ci.yml +++ b/.github/workflows/react-native-ci.yml @@ -244,9 +244,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -258,7 +258,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') @@ -431,9 +431,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -445,7 +445,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/react-native-expo-ci.yml b/.github/workflows/react-native-expo-ci.yml index 2a936e2e1..ba2165e13 100644 --- a/.github/workflows/react-native-expo-ci.yml +++ b/.github/workflows/react-native-expo-ci.yml @@ -240,9 +240,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -254,7 +254,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') @@ -432,9 +432,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -446,7 +446,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d') diff --git a/.github/workflows/swift-ci.yml b/.github/workflows/swift-ci.yml index 640156061..e194875f8 100644 --- a/.github/workflows/swift-ci.yml +++ b/.github/workflows/swift-ci.yml @@ -392,9 +392,9 @@ jobs: echo "Seeding test task to Ditto Cloud..." TIMESTAMP=$(date +%s) INVERTED_TIMESTAMP=$((9999999999 - TIMESTAMP)) - SEED_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \ + SEED_RESPONSE=$(curl -fSs -w "\n%{http_code}" -X POST \ -H 'Content-type: application/json' \ - -H "Authorization: Bearer ${{ secrets.DITTO_API_KEY }}" \ + -H "Authorization: Bearer ${{ secrets.DITTO_PLAYGROUND_TOKEN }}" \ -d "{ \"statement\": \"INSERT INTO tasks DOCUMENTS (:newTask) ON ID CONFLICT DO UPDATE\", \"args\": { @@ -406,7 +406,7 @@ jobs: } } }" \ - "https://${{ secrets.DITTO_API_URL }}/api/v4/store/execute") + "https://${{ secrets.DITTO_APP_ID }}.cloud.ditto.live/api/v4/store/execute") HTTP_CODE=$(echo "$SEED_RESPONSE" | tail -n1) BODY=$(echo "$SEED_RESPONSE" | sed '$d')