diff --git a/.gitea/workflows/infisical-secrets.yml b/.gitea/workflows/infisical-secrets.yml index bd82a84..3a4a9d4 100644 --- a/.gitea/workflows/infisical-secrets.yml +++ b/.gitea/workflows/infisical-secrets.yml @@ -26,9 +26,11 @@ jobs: CLIENT_SECRET: ${{ secrets.INFISICAL_CLIENT_SECRET }} run: | echo "Testing authentication endpoint..." - curl -v -X POST https://infisical.lemarechal.eu/api/v1/auth/universal-auth/login \ + # Use -s to be silent and -S to show errors, then pipe to cat to see the body + RESPONSE=$(curl -s -S -X POST https://infisical.lemarechal.eu/api/v1/auth/universal-auth/login \ -H "Content-Type: application/json" \ - -d "{\"clientId\": \"$CLIENT_ID\", \"clientSecret\": \"$CLIENT_SECRET\"}" + -d "{\"clientId\": \"$CLIENT_ID\", \"clientSecret\": \"$CLIENT_SECRET\"}") + echo "API Response: $RESPONSE" - name: Fetch Secrets from Infisical uses: https://github.com/Infisical/secrets-action@v1.0.7