Skip to content

Commit e71bcf0

Browse files
committed
chore(ci): use bot user to open registry PRs
1 parent a02824a commit e71bcf0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/marketplace-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ on:
2828
required: true
2929
REGISTRY_GPG_KEY_ID:
3030
required: true
31+
REGISTRY_PR_TOKEN:
32+
required: false
3133

3234
env:
3335
CARGO_TERM_COLOR: always
@@ -221,6 +223,7 @@ jobs:
221223
- name: Create pull request
222224
uses: peter-evans/create-pull-request@v6
223225
with:
226+
token: ${{ secrets.REGISTRY_PR_TOKEN || github.token }}
224227
author: "StreamKit Registry Bot <registry-bot@streamkit.dev>"
225228
committer: "StreamKit Registry Bot <registry-bot@streamkit.dev>"
226229
branch: "registry/${{ env.RELEASE_TAG }}-${{ github.run_id }}"

RELEASING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ Registry PR commits are signed by the workflow. Add these secrets:
6969
- `REGISTRY_GPG_PASSPHRASE`: passphrase for the private key
7070
- `REGISTRY_GPG_KEY_ID`: GPG key fingerprint for the registry bot
7171

72+
If you want CI checks to run on the registry PR, add a fine-grained PAT for the
73+
bot as `REGISTRY_PR_TOKEN` with `contents: write` and `pull-requests: write`.
74+
7275
### Verify outputs
7376

7477
- GitHub Release includes `*-bundle.tar.zst` assets.

0 commit comments

Comments
 (0)