From 9637fcc79786f08cc4f5ff3fffa01b5d859f6ca2 Mon Sep 17 00:00:00 2001 From: Javier Blanco Date: Thu, 30 Apr 2026 10:58:00 +0700 Subject: [PATCH] protect secret array --- deploy.php | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/deploy.php b/deploy.php index 98a5a54..b00e970 100644 --- a/deploy.php +++ b/deploy.php @@ -1,7 +1,8 @@ &1', 'cd ' . escapeshellarg(REPO_PATH) . ' && ' . GIT_BIN . ' fetch origin 2>&1', 'cd ' . escapeshellarg(REPO_PATH) . ' && ' . GIT_BIN . ' checkout ' . escapeshellarg(ALLOWED_BRANCH) . ' 2>&1', 'cd ' . escapeshellarg(REPO_PATH) . ' && ' . GIT_BIN . ' pull origin ' . escapeshellarg(ALLOWED_BRANCH) . ' 2>&1', @@ -118,12 +119,7 @@ foreach ($commands as $cmd) { } } -$after = $data['after'] ?? ''; -$pusher = $data['pusher']['login'] ?? ($data['sender']['login'] ?? 'unknown'); - -$logBlock = "Webhook OK | event=push | ref={$ref} | after={$after} | pusher={$pusher}\n" . - implode("\n", $outputAll) . "\n---"; -log_line($logBlock); +log_line("PROJECT_KEY=" . PROJECT_KEY . "\n" . implode("\n", $outputAll) . "\n---"); if ($returnCode !== 0) { respond(500, 'Deploy failed. Revisa deploy.log');