diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f73e188..4fa0b1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} + token: ${{ secrets.${{ 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 9fa1f28..d52e41f 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -62,7 +62,7 @@ jobs: id: create-pr uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.PROJEN_GITHUB_TOKEN }} + token: ${{ secrets.${{ secrets.GITHUB_TOKEN }} }} commit-message: |- chore(deps): upgrade dependencies diff --git a/.projenrc.ts b/.projenrc.ts index 019e5a3..a4d7e36 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1,4 +1,5 @@ -import { cdk } from 'projen'; +import { cdk, github } from 'projen'; + const kplus = 'cdk8s-plus-24'; const project = new cdk.JsiiProject({ // majorVersion: 1, @@ -30,5 +31,11 @@ const project = new cdk.JsiiProject({ distName: 'cdk8s-plone', module: 'cdk8s_plone', }, + githubOptions: { + workflows: true, + projenCredentials: github.GithubCredentials.fromPersonalAccessToken({ secret: '${{ secrets.GITHUB_TOKEN }}' }), + }, + }); + project.synth(); \ No newline at end of file