Merge pull request #30321 from jboeijenga/fix/gitlab-auth-issue

fix: Gitlab auth issue
This commit is contained in:
Fredrik Adelöw
2025-06-23 16:29:52 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/integration-react': patch
---
Separated gitlab `write_repository` and `api` scope to pass checks in `RefreshingAuthSessionManager`
@@ -173,7 +173,7 @@ export class ScmAuth implements ScmAuthApi {
const host = options?.host ?? 'gitlab.com';
return new ScmAuth('gitlab', gitlabAuthApi, host, {
default: ['read_user', 'read_api', 'read_repository'],
repoWrite: ['write_repository api'],
repoWrite: ['write_repository', 'api'],
});
}