diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fda2b9a4..eb513334 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Download patch diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index fcac32fb..72c333ca 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -65,7 +65,7 @@ jobs: id: create-pr uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} commit-message: |- chore(deps): upgrade dependencies diff --git a/.projenrc.ts b/.projenrc.ts index c4f0b37d..2945902e 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -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'; @@ -45,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.',