chore(env): generate sandbox test password

This commit is contained in:
Guillaume ARM 2026-06-14 19:45:40 +02:00
parent 4cfceecb9a
commit dbb056c9c6
2 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ TRAP_CCLIBS_TEST_TIMEOUT_SECONDS=3
# Dedicated `just test-timeout` fixture timings. # Dedicated `just test-timeout` fixture timings.
TRAP_CCLIBS_TEST_TIMEOUT_WATCHDOG_SECONDS=1 TRAP_CCLIBS_TEST_TIMEOUT_WATCHDOG_SECONDS=1
# Test placeholder. The real value is generated in `.env` on first `just install`, # Test placeholders. The real values are generated in `.env` on first `just install`,
# or after `just clean` / `just reinstall`. # or after `just clean` / `just reinstall`.
OPENCODE_SERVER_PASSWORD=redacted OPENCODE_SERVER_PASSWORD=redacted
SANDBOX_PASSWORD=redacted

View File

@ -32,8 +32,8 @@ generate-env:
password="$(openssl rand -hex 32)" password="$(openssl rand -hex 32)"
while IFS= read -r line || [ -n "$line" ]; do while IFS= read -r line || [ -n "$line" ]; do
case "$line" in case "$line" in
OPENCODE_SERVER_PASSWORD=*) OPENCODE_SERVER_PASSWORD=*|SANDBOX_PASSWORD=*)
printf '%s\n' "OPENCODE_SERVER_PASSWORD=$password" printf '%s\n' "${line%%=*}=$password"
;; ;;
*) *)
printf '%s\n' "$line" printf '%s\n' "$line"