From ec6d88bf11a4c3788cdc0ae4aebc16a5310476c9 Mon Sep 17 00:00:00 2001 From: Matti Nannt Date: Fri, 8 Aug 2025 10:06:57 +0200 Subject: [PATCH] fix: OneLeet Code Scanning Sentry action issues (#6378) --- .../upload-sentry-sourcemaps/action.yml | 40 +++---------------- apps/web/locales/ro-RO.json | 2 + 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/.github/actions/upload-sentry-sourcemaps/action.yml b/.github/actions/upload-sentry-sourcemaps/action.yml index c3bd49596b..8e54b5c3eb 100644 --- a/.github/actions/upload-sentry-sourcemaps/action.yml +++ b/.github/actions/upload-sentry-sourcemaps/action.yml @@ -24,36 +24,6 @@ runs: with: fetch-depth: 0 - - name: Validate Sentry auth token - shell: bash - env: - SENTRY_TOKEN: ${{ inputs.sentry_auth_token }} - run: | - set -euo pipefail - echo "🔐 Validating Sentry authentication token..." - - # Test the token by making a simple API call to Sentry - response=$(curl -s -w "%{http_code}" -o /tmp/sentry_response.json \ - -H "Authorization: Bearer $SENTRY_TOKEN" \ - "https://sentry.io/api/0/organizations/formbricks/") - - http_code=$(echo "$response" | tail -n1) - - if [ "$http_code" != "200" ]; then - echo "❌ Error: Invalid Sentry auth token (HTTP $http_code)" - echo "Please check your SENTRY_AUTH_TOKEN is correct and has the necessary permissions." - if [ -f /tmp/sentry_response.json ]; then - echo "Response body:" - cat /tmp/sentry_response.json - fi - exit 1 - fi - - echo "✅ Sentry auth token validated successfully" - - # Clean up temp file - rm -f /tmp/sentry_response.json - - name: Extract sourcemaps from Docker image shell: bash env: @@ -64,16 +34,16 @@ runs: # Validate docker image format (basic validation) if [[ ! "$DOCKER_IMAGE" =~ ^[a-zA-Z0-9._/-]+:[a-zA-Z0-9._-]+$ ]] && [[ ! "$DOCKER_IMAGE" =~ ^[a-zA-Z0-9._/-]+@sha256:[A-Fa-f0-9]{64}$ ]]; then echo "❌ Error: Invalid docker image format. Must be in format 'image:tag' or 'image@sha256:hash'" - echo "Provided: $DOCKER_IMAGE" + echo "Provided: ${DOCKER_IMAGE}" exit 1 fi - echo "📦 Extracting sourcemaps from Docker image: $DOCKER_IMAGE" + echo "📦 Extracting sourcemaps from Docker image: ${DOCKER_IMAGE}" # Create temporary container from the image and capture its ID echo "Creating temporary container..." CONTAINER_ID=$(docker create "$DOCKER_IMAGE") - echo "Container created with ID: $CONTAINER_ID" + echo "Container created with ID: ${CONTAINER_ID}" # Set up cleanup function to ensure container is removed on script exit cleanup_container() { @@ -85,7 +55,7 @@ runs: # Remove the container if it exists (ignore errors if already removed) if [ -n "$CONTAINER_ID" ]; then docker rm -f "$CONTAINER_ID" 2>/dev/null || true - echo "Container $CONTAINER_ID removed" + echo "Container ${CONTAINER_ID} removed" fi # Exit with the original exit code to preserve script success/failure status @@ -106,7 +76,7 @@ runs: fi sourcemap_count=$(find ./extracted-next/static/chunks -name "*.map" | wc -l) - echo "✅ Found $sourcemap_count sourcemap files" + echo "✅ Found ${sourcemap_count} sourcemap files" if [ "$sourcemap_count" -eq 0 ]; then echo "❌ Error: No sourcemap files found. Check that productionBrowserSourceMaps is enabled." diff --git a/apps/web/locales/ro-RO.json b/apps/web/locales/ro-RO.json index e455591799..ea457bdf45 100644 --- a/apps/web/locales/ro-RO.json +++ b/apps/web/locales/ro-RO.json @@ -764,6 +764,8 @@ "api_host_description": "Acesta este URL-ul backend-ului tău Formbricks.", "app_connection": "Conectare aplicație", "app_connection_description": "Conectează aplicația ta la Formbricks.", + "cache_update_delay_description": "Când faci actualizări la sondaje, contacte, acțiuni sau alte date, poate dura până la 5 minute pentru ca aceste modificări să apară în aplicația locală care rulează SDK Formbricks. Această întârziere se datorează unei limitări în sistemul nostru actual de caching. Revedem activ cache-ul și vom lansa o soluție în Formbricks 4.0.", + "cache_update_delay_title": "Modificările vor fi reflectate după 5 minute datorită memorării în cache", "check_out_the_docs": "Consultați documentația.", "dive_into_the_docs": "Accesați documentația.", "does_your_widget_work": "Funcționează widgetul dvs.?",