Skip to content

Commit 0d52f48

Browse files
fix passing PAT incorrectly to api call
1 parent 095b0cc commit 0d52f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketsecurity/core/scm/gitlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def from_env(cls) -> 'GitlabConfig':
5858
repository=project_name,
5959
is_default_branch=(mr_source_branch == default_branch if mr_source_branch else False),
6060
headers={
61-
'Authorization': f"Bearer {token}",
61+
'PRIVATE-TOKEN': f"{token}",
6262
'User-Agent': 'SocketPythonScript/0.0.1',
6363
"accept": "application/json"
6464
}

0 commit comments

Comments
 (0)