diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2296d6f2..5c050887 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,7 +81,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a + uses: actions/create-github-app-token@v1 with: app_id: ${{ secrets.PROJEN_APP_ID }} private_key: ${{ secrets.PROJEN_APP_PRIVATE_KEY }} diff --git a/.github/workflows/release-v3.yml b/.github/workflows/release-v3.yml index 8731cf4b..f8cbe7a7 100644 --- a/.github/workflows/release-v3.yml +++ b/.github/workflows/release-v3.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c + uses: actions/create-github-app-token@v1 with: - app_id: ${{ secrets.PROJEN_APP_ID }} - private_key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" + app-id: ${{ secrets.PROJEN_APP_ID }} + private-key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/release-v5.yml b/.github/workflows/release-v5.yml index 8bc29e13..399e39c3 100644 --- a/.github/workflows/release-v5.yml +++ b/.github/workflows/release-v5.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c + uses: actions/create-github-app-token@v1 with: - app_id: ${{ secrets.PROJEN_APP_ID }} - private_key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" + app-id: ${{ secrets.PROJEN_APP_ID }} + private-key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 51c9c069..402dee68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c + uses: actions/create-github-app-token@v1 with: - app_id: ${{ secrets.PROJEN_APP_ID }} - private_key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" + app-id: ${{ secrets.PROJEN_APP_ID }} + private-key: " ${{ secrets.PROJEN_APP_PRIVATE_KEY }}" - name: Checkout uses: actions/checkout@v4 with: diff --git a/.github/workflows/upgrade-v4.yml b/.github/workflows/upgrade-v4.yml index f1b9832b..c8dc5a89 100644 --- a/.github/workflows/upgrade-v4.yml +++ b/.github/workflows/upgrade-v4.yml @@ -49,7 +49,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a + uses: actions/create-github-app-token@v1 with: app_id: ${{ secrets.PROJEN_APP_ID }} private_key: ${{ secrets.PROJEN_APP_PRIVATE_KEY }} diff --git a/.github/workflows/upgrade-v5.yml b/.github/workflows/upgrade-v5.yml index b8a617f0..5f9a9666 100644 --- a/.github/workflows/upgrade-v5.yml +++ b/.github/workflows/upgrade-v5.yml @@ -49,7 +49,7 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a + uses: actions/create-github-app-token@v1 with: app_id: ${{ secrets.PROJEN_APP_ID }} private_key: ${{ secrets.PROJEN_APP_PRIVATE_KEY }} diff --git a/.projenrc.ts b/.projenrc.ts index 3f2ec07a..97c8a383 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -343,6 +343,8 @@ new TypeScriptSourceFile(project, 'src/esbuild-types.ts', { }, }); +// Use official github-app-token action +project.github?.actions.set('tibdex/github-app-token', 'actions/create-github-app-token@v1'); // Synth project project.synth(); diff --git a/projenrc/ReleaseBranches.ts b/projenrc/ReleaseBranches.ts index e9895115..32588f13 100644 --- a/projenrc/ReleaseBranches.ts +++ b/projenrc/ReleaseBranches.ts @@ -64,10 +64,10 @@ export class StableReleases { JsonPatch.add('/jobs/release/steps/0', { name: 'Generate token', id: 'generate_token', - uses: 'tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c', + uses: 'actions/create-github-app-token@v1', with: { - app_id: '${{ secrets.PROJEN_APP_ID }}', - private_key: ' ${{ secrets.PROJEN_APP_PRIVATE_KEY }}', + 'app-id': '${{ secrets.PROJEN_APP_ID }}', + 'private-key': ' ${{ secrets.PROJEN_APP_PRIVATE_KEY }}', }, }), JsonPatch.add('/jobs/release/steps/1/with/token', '${{ steps.generate_token.outputs.token }}'),