Skip to content

Use Bearer authentication to support fine-grained GitLab PATs - #381

Merged
mglaman merged 1 commit into
mglaman:mainfrom
balintbrews:fix/gitlab-bearer-auth
Sep 16, 2026
Merged

mglaman merged 1 commit into
mglaman:mainfrom
balintbrews:fix/gitlab-bearer-auth

Conversation

@balintbrews

@balintbrews balintbrews commented Sep 16, 2026

Copy link
Copy Markdown

Send GitLab API tokens using Authorization: Bearer instead of PRIVATE-TOKEN to support fine-grained PATs. GitLab also supports Bearer authentication for classic PATs, so no separate mode is needed.

Token resolution is unchanged: DRUPALORG_GITLAB_TOKEN takes precedence over the existing glab fallback.

Testing

With both classic and fine-grained PATs:

  • Read an issue, MR, pipeline status, and failed-job logs.
  • Post unassign/reassign notes on an approved work item.
  • Confirm the classic token also works through the glab fallback.

Verify note creation separately from bot-applied changes, which may be delayed.

@mglaman
mglaman merged commit 836ec96 into mglaman:main Sep 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants