diff --git a/ts/pulumi/bazel_rce/index.ts b/ts/pulumi/bazel_rce/index.ts index 7b7c0b45..5751d911 100644 --- a/ts/pulumi/bazel_rce/index.ts +++ b/ts/pulumi/bazel_rce/index.ts @@ -376,6 +376,13 @@ export class BazelRemoteCache extends Pulumi.ComponentResource { { parent: this } ); + const self = GitHub.getUser({ username: '' }, { parent: this }); + + void self.then(self => { + if (!self.username) + throw `Unable to get own user details. GITHUB_TOKEN may not be configured.`; + }); + new GitHub.ActionsSecret( `${name}_actions_secret_cache_url`, {