Seperated write scopes to pass refresh auth session manager checks

Added changeset

Delete old changeset file

Update .changeset/tired-bats-attend.md with proposed changes

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Jasper Boeijenga <jboeijenga@gmail.com>
This commit is contained in:
Jasper Boeijenga
2025-06-19 14:28:54 +02:00
committed by Fredrik Adelöw
parent 667b951466
commit 998fd151ba
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/integration-react': patch
---
Separated gitlab `write_repository` 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'],
});
}