From b62a3cbc3e19bf73f0e4faa7179db44cc2085733 Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Fri, 26 Sep 2025 19:14:46 +0800 Subject: [PATCH] fix: require explicit 'true' value for debug mode in deployment (#735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update GitHub Actions workflow to only enable debug mode when DEBUG_MODE secret is exactly 'true' - Previously debug mode was enabled for any non-empty value, which could lead to accidental activation - Change from `[ -n "$debug_mode" ]` to `[ "$debug_mode" = "true" ]` for precise control 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- .github/workflows/backend_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backend_deploy.yaml b/.github/workflows/backend_deploy.yaml index a9441ff8..9a356212 100644 --- a/.github/workflows/backend_deploy.yaml +++ b/.github/workflows/backend_deploy.yaml @@ -60,7 +60,7 @@ jobs: echo "Applied mail-parser-wasm-worker patch" fi - if [ -n "$debug_mode" ]; then + if [ "$debug_mode" = "true" ]; then pnpm run deploy else output=$(pnpm run deploy 2>&1)