mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
fix: require explicit 'true' value for debug mode in deployment (#735)
- 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 <noreply@anthropic.com>
This commit is contained in:
2
.github/workflows/backend_deploy.yaml
vendored
2
.github/workflows/backend_deploy.yaml
vendored
@@ -60,7 +60,7 @@ jobs:
|
|||||||
echo "Applied mail-parser-wasm-worker patch"
|
echo "Applied mail-parser-wasm-worker patch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$debug_mode" ]; then
|
if [ "$debug_mode" = "true" ]; then
|
||||||
pnpm run deploy
|
pnpm run deploy
|
||||||
else
|
else
|
||||||
output=$(pnpm run deploy 2>&1)
|
output=$(pnpm run deploy 2>&1)
|
||||||
|
|||||||
Reference in New Issue
Block a user