Skip to content

Commit

Permalink
used projenCredentials vs. projentTokenSecret
Browse files Browse the repository at this point in the history
  • Loading branch information
tobuck-aws committed Feb 28, 2024
1 parent eba3646 commit f7e1803
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { awscdk, javascript } from 'projen';
import { GithubCredentials } from 'projen/lib/github';
import { NpmAccess } from 'projen/lib/javascript';

const GITHUB_USER = 'awslabs';
Expand Down Expand Up @@ -36,7 +37,6 @@ const project = new awscdk.AwsCdkConstructLibrary({
prettier: true,
projenrcTs: true,
projenVersion: PROJEN_VERSION,
projenTokenSecret: 'GITHUB_TOKEN',
repositoryUrl: `https://github.com/${GITHUB_USER}/${PROJECT_NAME}`,
sampleCode: false,
stability: 'experimental',
Expand All @@ -46,6 +46,9 @@ const project = new awscdk.AwsCdkConstructLibrary({
npmAccess: NpmAccess.PUBLIC,

githubOptions: {
projenCredentials: GithubCredentials.fromPersonalAccessToken({
secret: 'GITHUB_TOKEN',
}),
pullRequestLintOptions: {
contributorStatement:
'By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.',
Expand Down

0 comments on commit f7e1803

Please sign in to comment.