Skip to content

Commit

Permalink
ci: use official create-github-app-token (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain authored May 25, 2024
1 parent becefb9 commit 8255389
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/release-v4.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-v4.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-v5.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,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();
6 changes: 3 additions & 3 deletions projenrc/ReleaseBranches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'),
Expand Down

0 comments on commit 8255389

Please sign in to comment.