mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 22:13:09 +00:00
fix: GitLab webhook validation (#7899)
This commit is contained in:
1 file changed
+1
-1
@@ -100,7 +100,7 @@ class Gitlab extends Controller
|
|||||||
}
|
}
|
||||||
foreach ($applications as $application) {
|
foreach ($applications as $application) {
|
||||||
$webhook_secret = data_get($application, 'manual_webhook_secret_gitlab');
|
$webhook_secret = data_get($application, 'manual_webhook_secret_gitlab');
|
||||||
if ($webhook_secret !== $x_gitlab_token) {
|
if (! hash_equals($webhook_secret ?? '', $x_gitlab_token ?? '')) {
|
||||||
$return_payloads->push([
|
$return_payloads->push([
|
||||||
'application' => $application->name,
|
'application' => $application->name,
|
||||||
'status' => 'failed',
|
'status' => 'failed',
|
||||||
|
|||||||
Reference in new issue
Block a user