chore: remove repository:admin from default repo write scopes

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2025-03-06 18:52:07 +01:00
parent 44bb6c4ead
commit 066a915751
3 changed files with 2 additions and 3 deletions
@@ -138,7 +138,7 @@ describe('ScmAuth', () => {
}),
).resolves.toMatchObject({
token:
'account team pullrequest snippet issue project pullrequest:write snippet:write issue:write repository:admin',
'account team pullrequest snippet issue project pullrequest:write snippet:write issue:write',
});
});
@@ -245,7 +245,6 @@ export class ScmAuth implements ScmAuthApi {
'pullrequest:write',
'snippet:write',
'issue:write',
'repository:admin',
];
return new ScmAuth('bitbucket', bitbucketAuthApi, host, {
default: defaultScopes,