Skip to content

Commit 7c6e02f

Browse files
Merge pull request #1 from tomasstrejcek/gitlab-token-patch-1
fix passing PAT incorrectly to api call
2 parents 095b0cc + 0d52f48 commit 7c6e02f

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)