From 71f91715633a14324f19df85286eccc33719c07c Mon Sep 17 00:00:00 2001 From: Balint Kleri Date: Wed, 16 Sep 2026 16:30:56 +0200 Subject: [PATCH] Use Bearer authentication to support fine-grained GitLab PATs --- src/Api/GitLab/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/GitLab/Client.php b/src/Api/GitLab/Client.php index 67e72a0..74617bf 100644 --- a/src/Api/GitLab/Client.php +++ b/src/Api/GitLab/Client.php @@ -31,7 +31,7 @@ public function __construct() $token = self::resolveToken(); if ($token !== null) { - $headers['PRIVATE-TOKEN'] = $token; + $headers['Authorization'] = 'Bearer ' . $token; } $this->client = new \GuzzleHttp\Client([