Optional
Readonly
actionThe action name used for this source in the CodePipeline
Optional
Readonly
authenticationA GitHub OAuth token to use for authentication.
It is recommended to use a Secrets Manager Secret
to obtain the token:
const oauth = cdk.SecretValue.secretsManager('my-github-token');
The GitHub Personal Access Token should have these scopes:
Optional
Readonly
triggerHow AWS CodePipeline should be triggered
With the default value "WEBHOOK", a webhook is created in GitHub that triggers the action. With "POLL", CodePipeline periodically checks the source for changes. With "None", the action is not triggered through changes in the source.
To use WEBHOOK
, your GitHub Personal Access Token should have
admin:repo_hook scope (in addition to the regular repo scope).
Options for GitHub sources