Commit 0b770fe authored Apr 2, 2024 · 24 / 25 · Verified
1 parent 4743344 commit 0b770fe Copy full SHA for 0b770fe
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ async function promptRepositoryUri(
243
243
244
244
async function ensureSecretManagerAdminGrant ( projectId : string ) : Promise < void > {
245
245
const projectNumber = await getProjectNumber ( { projectId } ) ;
246
- const cbsaEmail = gcb . getDefaultServiceAccount ( projectNumber ) ;
246
+ const cbsaEmail = gcb . getDefaultServiceAgent ( projectNumber ) ;
247
247
248
248
const alreadyGranted = await rm . serviceAccountHasRoles (
249
249
projectId ,
Original file line number Diff line number Diff line change @@ -222,13 +222,13 @@ export async function deleteRepository(
222
222
* This service account is deprecated and future users should bring their own account.
223
223
*/
224
224
export function getDefaultServiceAccount ( projectNumber : string ) : string {
225
- return `service- ${ projectNumber } @gcp-sa- cloudbuild.iam .gserviceaccount.com` ;
225
+ return `${ projectNumber } @cloudbuild.gserviceaccount.com` ;
226
226
}
227
227
228
228
/**
229
229
* Returns the default cloud build service agent.
230
230
* This is the account that Cloud Build itself uses when performing operations on the user's behalf.
231
231
*/
232
232
export function getDefaultServiceAgent ( projectNumber : string ) : string {
233
- return `${ projectNumber } @cloudbuild.gserviceaccount.com` ;
233
+ return `service- ${ projectNumber } @gcp-sa- cloudbuild.iam .gserviceaccount.com` ;
234
234
}
You can’t perform that action at this time.
0 commit comments