Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
eval: passing 2fa tokens without json parsing
Saurav Panda460e6b589d4a
diff --git a/.github/workflows/eval.yaml b/.github/workflows/eval.yamlindex 8c6a68c2d..588ffb470 100644--- a/.github/workflows/eval.yaml+++ b/.github/workflows/eval.yaml@@ -253,22 +253,14 @@ jobs:PLANNER_MODEL="${{ github.event.client_payload.script_args.planner_model }}"RUN_ID="${{ github.event.client_payload.script_args.run_id }}"LAMINAR_EVAL_ID="${{ github.event.client_payload.script_args.laminar_eval_id }}"- # Use jq to properly format the JSON tokens- GMAIL_2FA_TOKENS_RAW="${{ toJSON(github.event.client_payload.script_args.gmail_2fa_tokens) }}"- if [[ "$GMAIL_2FA_TOKENS_RAW" != "null" && "$GMAIL_2FA_TOKENS_RAW" != "" ]]; then- # Use jq to reformat as proper JSON- GMAIL_2FA_TOKENS=$(echo "$GMAIL_2FA_TOKENS_RAW" | jq -c '.' 2>/dev/null || echo "")- else- GMAIL_2FA_TOKENS=""- fi+ # Pass raw GitHub Actions object to Python - no parsing in bash+ GMAIL_2FA_TOKENS_RAW='${{ github.event.client_payload.script_args.gmail_2fa_tokens }}'# Debug Gmail 2FA tokens variable assignmentecho "DEBUG: π§ GMAIL_2FA_TOKENS assignment debug:"echo "DEBUG: π§ Raw payload value: '${{ github.event.client_payload.script_args.gmail_2fa_tokens }}'"- echo "DEBUG: π§ toJSON result: '${{ toJSON(github.event.client_payload.script_args.gmail_2fa_tokens) }}'"- echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW: '$GMAIL_2FA_TOKENS_RAW'"- echo "DEBUG: π§ GMAIL_2FA_TOKENS (after jq): '$GMAIL_2FA_TOKENS'"- echo "DEBUG: π§ GMAIL_2FA_TOKENS length: ${#GMAIL_2FA_TOKENS}"+ echo "DEBUG: π§ Final GMAIL_2FA_TOKENS_RAW variable: '$GMAIL_2FA_TOKENS_RAW'"+ echo "DEBUG: π§ Variable length: ${#GMAIL_2FA_TOKENS_RAW}"# Single task mode parametersTASK_ID="${{ github.event.client_payload.script_args.task_id }}"@@ -313,17 +305,17 @@ jobs:# Add Gmail 2FA parametersecho "DEBUG: π§ GMAIL_2FA_TOKENS conditional check:"- echo "DEBUG: π§ GMAIL_2FA_TOKENS value at check time: '$GMAIL_2FA_TOKENS'"- echo "DEBUG: π§ GMAIL_2FA_TOKENS length at check time: ${#GMAIL_2FA_TOKENS}"- echo "DEBUG: π§ GMAIL_2FA_TOKENS equals 'null': $([[ "$GMAIL_2FA_TOKENS" == "null" ]] && echo "true" || echo "false")"- echo "DEBUG: π§ GMAIL_2FA_TOKENS is empty: $([[ -z "$GMAIL_2FA_TOKENS" ]] && echo "true" || echo "false")"- echo "DEBUG: π§ GMAIL_2FA_TOKENS is non-empty: $([[ -n "$GMAIL_2FA_TOKENS" ]] && echo "true" || echo "false")"-- if [[ -n "$GMAIL_2FA_TOKENS" && "$GMAIL_2FA_TOKENS" != "null" ]]; then- echo "DEBUG: β GMAIL_2FA_TOKENS conditional passed - adding tokens to command"- CMD_ARGS+=("--gmail-2fa-tokens" "$GMAIL_2FA_TOKENS")+ echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW value at check time: '$GMAIL_2FA_TOKENS_RAW'"+ echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW length at check time: ${#GMAIL_2FA_TOKENS_RAW}"+ echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW equals 'null': $([[ "$GMAIL_2FA_TOKENS_RAW" == "null" ]] && echo "true" || echo "false")"+ echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW is empty: $([[ -z "$GMAIL_2FA_TOKENS_RAW" ]] && echo "true" || echo "false")"+ echo "DEBUG: π§ GMAIL_2FA_TOKENS_RAW is non-empty: $([[ -n "$GMAIL_2FA_TOKENS_RAW" ]] && echo "true" || echo "false")"++ if [[ -n "$GMAIL_2FA_TOKENS_RAW" && "$GMAIL_2FA_TOKENS_RAW" != "null" ]]; then+ echo "DEBUG: β GMAIL_2FA_TOKENS_RAW conditional passed - adding tokens to command"+ CMD_ARGS+=("--gmail-2fa-tokens" "$GMAIL_2FA_TOKENS_RAW")else- echo "DEBUG: β GMAIL_2FA_TOKENS conditional failed - tokens are empty, null, or not set, skipping"+ echo "DEBUG: β GMAIL_2FA_TOKENS_RAW conditional failed - tokens are empty, null, or not set, skipping"fi# Add single task mode parameters