Skip to content

Commit deaf51c

Browse files
ci: use GitHub app to generate token for release
1 parent d57dec9 commit deaf51c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ jobs:
2929
runs-on: ubuntu-latest
3030
permissions:
3131
contents: write # to be able to publish a GitHub release
32+
id-token: write # provenance
3233
steps:
34+
- name: Generate bot app token
35+
id: generate_token
36+
uses: actions/create-github-app-token@v1
37+
with:
38+
app-id: ${{ secrets.NGRX_APP_ID }}
39+
private-key: ${{ secrets.NGRX_APP_PRIVATE_KEY }}
3340
- name: Checkout
34-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
42+
with:
43+
token: ${{ steps.generate_token.outputs.token }}
44+
fetch-depth: 0
45+
persist-credentials: false
3546
- name: Setup Node.js
3647
uses: actions/setup-node@v3
3748
with:

0 commit comments

Comments
 (0)