Skip to content

Commit 41a3ad4

Browse files
committed
ci: authenticate releases with GitHub App
Stainless-Generated-From: 1ae1d13f8e636f021896c6c5632f088b91997a7c
1 parent 4f34427 commit 41a3ad4

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@ on:
55
- main
66

77
permissions:
8-
contents: write
9-
pull-requests: write
8+
contents: read
109

1110
jobs:
1211
release-please:
1312
if: github.repository == 'kernel/kernel-python-sdk'
1413
runs-on: ubuntu-latest
1514

1615
steps:
16+
- name: Mint release token
17+
id: release-token
18+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
19+
with:
20+
app-id: ${{ secrets.ADMIN_APP_ID }}
21+
private-key: ${{ secrets.ADMIN_APP_PRIVATE_KEY }}
22+
owner: kernel
23+
repositories: kernel-python-sdk
24+
permission-contents: write
25+
permission-issues: write
26+
permission-pull-requests: write
27+
permission-workflows: write
28+
1729
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
1830
id: release
1931
with:
20-
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
32+
token: ${{ steps.release-token.outputs.token }}

0 commit comments

Comments
 (0)