Skip to content

Commit

Permalink
refactor(infra): add new secret for runner registration level
Browse files Browse the repository at this point in the history
  • Loading branch information
uid10804 committed Oct 16, 2023
1 parent f070815 commit 50de4cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ export class Secrets extends Construct {
*/
readonly githubPrivateKey: secretsmanager.Secret;


/**
* GitHub runner registration level.
*
* This secret is used to determine if the runner should be registered as an organization runner or a repository runner.
* @default "repo"
*/
readonly githubRunnerRegistrationLevel: secretsmanager.Secret;


/**
* Setup secret used to authenticate user for our setup wizard. Should be empty after setup has been completed.
*/
Expand Down Expand Up @@ -73,6 +83,14 @@ export class Secrets extends Construct {
},
);

this.githubRunnerRegistrationLevel = new secretsmanager.Secret(
this,
'GitHub Runner Registration Level',
{
secretStringValue: cdk.SecretValue.unsafePlainText('repo'),
},
);

this.setup = new secretsmanager.Secret(
this,
'Setup',
Expand Down

0 comments on commit 50de4cc

Please sign in to comment.