credentialsType is excluded and the only supported credentialsSecret is a plaintext GitHub OAuth token. repoUrl

interface GitHubSourceRepository {
    credentialsSecretName: string;
    name?: string;
    owner?: string;
    path?: string;
    repoUrl: string;
    targetRevision?: string;
    trigger?: GitHubTrigger;
}

Hierarchy

Properties

credentialsSecretName: string

A GitHub OAuth token to use for authentication stored with AWS Secret Manager. The provided name will be looked up using the following:

const credentials = cdk.SecretValue.secretsManager('my-github-token');

The GitHub Personal Access Token should have these scopes:

  • repo - to read the repository
  • admin:repo_hook - if you plan to use webhooks (true by default)
name?: string

Optional name for the bootstrap application

owner?: string

The owner of the repository for the pipeline (GitHub handle).

path?: string

Path within the repository

repoUrl: string

Expected to support helm style repo at the moment

targetRevision?: string

Optional target revision for the repository. TargetRevision defines the revision of the source to sync the application to. In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version.

trigger?: GitHubTrigger

How GitHub source action will be triggered.