fix: GitLab webhook validation (#7899)
This commit is contained in:
commit
162e43a7fc
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ public function manual(Request $request)
|
||||||
}
|
}
|
||||||
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',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue