Skip to content

Commit 910b8b9

Browse files
authored
fix releasepost pipeline
1 parent 76b7df4 commit 910b8b9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/updatecli_release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
repository_dispatch:
1010
types:
1111
- "updatecli-release"
12+
permissions: {}
1213
jobs:
1314
updatecli:
1415
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
1519
steps:
1620
- name: "Checkout"
1721
uses: "actions/checkout@v4"
@@ -35,10 +39,7 @@ jobs:
3539
- name: "Run updatecli"
3640
run: "updatecli compose apply --file updatecli-compose-release.yaml --experimental"
3741
env:
38-
# The releasepost policy requires the env GITHUB_TOKEN even though
39-
# So I am temporarily adding an empty value to publish the release note
40-
GITHUB_TOKEN: ""
41-
RELEASEPOST_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
42+
RELEASEPOST_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4243
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
4344
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
4445
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}

0 commit comments

Comments
 (0)