Skip to content

Commit

Permalink
doc(codepipeline-actions): update the GitHub token example. (#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
skinny85 authored Jun 28, 2019
1 parent 921dcc9 commit d7fc725
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@aws-cdk/aws-codepipeline-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ To use GitHub as the source of a CodePipeline:

```typescript
// Read the secret from ParameterStore
const token = cdk.SecretValue.ssmSecure('my-github-token','1');
const sourceOutput = new codepipeline.Artifact();
const sourceAction = new codepipeline_actions.GitHubSourceAction({
actionName: 'GitHub_Source',
owner: 'awslabs',
repo: 'aws-cdk',
oauthToken: token.value,
oauthToken: cdk.SecretValue.secretsManager('my-github-token'),
output: sourceOutput,
branch: 'develop', // default: 'master'
trigger: codepipeline_actions.GitHubTrigger.POLL // default: 'WEBHOOK', 'NONE' is also possible for no Source trigger
Expand Down

0 comments on commit d7fc725

Please sign in to comment.