Skip to content

Commit

Permalink
Try to test if the GitHub credentials are incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez authored and zemnm-me-actions-admin-user-zemnmez committed Oct 24, 2023
1 parent a00b58c commit 14636e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ts/pulumi/bazel_rce/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
{
Expand Down

0 comments on commit 14636e7

Please sign in to comment.