UNPKG

@nikovirtala/cdk-codebuild-hosted-github-actions-runner

Version:

A construct to create an AWS CodeBuild project that can be used to run GitHub Actions workflows

32 lines (31 loc) 1.11 kB
import { aws_codebuild } from "aws-cdk-lib"; import { Construct } from "constructs"; export interface CodebuildHostedGitHubActionsRunnerProps { /** * The name of the CodeBuild project. * @default - A name is generated based on the repository owner and name. */ readonly codeBuildProjectName?: string; /** * The owner of the GitHub repository. */ readonly repositoryOwner: string; /** * The name of the GitHub repository. */ readonly repositoryName: string; /** * The ARN of the Secrets Manager secret containing the GitHub token. * * Note! CodeBuild only allows a single credential for GitHub * to be saved in a given AWS account in a given region - * any attempt to add more than one will result in an error. * * @default - No GitHub token is used. */ readonly tokenSecretArn?: string; } export declare class CodebuildHostedGitHubActionsRunner extends Construct { readonly project: aws_codebuild.IProject; constructor(scope: Construct, id: string, props: CodebuildHostedGitHubActionsRunnerProps); }