From 0d52f48ebd7d700b6c200b5fbfbbc286c40dc172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Strej=C4=8Dek?= Date: Fri, 1 Aug 2025 10:50:53 +0200 Subject: [PATCH] fix passing PAT incorrectly to api call --- socketsecurity/core/scm/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketsecurity/core/scm/gitlab.py b/socketsecurity/core/scm/gitlab.py index 24b1df3..5ab27fb 100644 --- a/socketsecurity/core/scm/gitlab.py +++ b/socketsecurity/core/scm/gitlab.py @@ -58,7 +58,7 @@ def from_env(cls) -> 'GitlabConfig': repository=project_name, is_default_branch=(mr_source_branch == default_branch if mr_source_branch else False), headers={ - 'Authorization': f"Bearer {token}", + 'PRIVATE-TOKEN': f"{token}", 'User-Agent': 'SocketPythonScript/0.0.1', "accept": "application/json" }