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" }