Skip to content

Commit 0b770fe

Browse files
authoredApr 2, 2024··
initial (#6951)
1 parent 4743344 commit 0b770fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/apphosting/repo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async function promptRepositoryUri(
243243

244244
async function ensureSecretManagerAdminGrant(projectId: string): Promise<void> {
245245
const projectNumber = await getProjectNumber({ projectId });
246-
const cbsaEmail = gcb.getDefaultServiceAccount(projectNumber);
246+
const cbsaEmail = gcb.getDefaultServiceAgent(projectNumber);
247247

248248
const alreadyGranted = await rm.serviceAccountHasRoles(
249249
projectId,

‎src/gcp/cloudbuild.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,13 @@ export async function deleteRepository(
222222
* This service account is deprecated and future users should bring their own account.
223223
*/
224224
export function getDefaultServiceAccount(projectNumber: string): string {
225-
return `service-${projectNumber}@gcp-sa-cloudbuild.iam.gserviceaccount.com`;
225+
return `${projectNumber}@cloudbuild.gserviceaccount.com`;
226226
}
227227

228228
/**
229229
* Returns the default cloud build service agent.
230230
* This is the account that Cloud Build itself uses when performing operations on the user's behalf.
231231
*/
232232
export function getDefaultServiceAgent(projectNumber: string): string {
233-
return `${projectNumber}@cloudbuild.gserviceaccount.com`;
233+
return `service-${projectNumber}@gcp-sa-cloudbuild.iam.gserviceaccount.com`;
234234
}

0 commit comments

Comments
 (0)
Please sign in to comment.