Skip to content

Commit e0658fd

Browse files
authored
try to fix publish workflow (#1571)
don't request PR write permissions, which the app doesn't have so it can never work (added in #1556 with the apparent intent to tighten permissions, but in fact expanded requested permissions beyond what was granted to the app) and update deprecated `app-id` to `client-id`
2 parents 3938cb6 + 5bf2c68 commit e0658fd

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎.github/workflows/publish-changelog.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
app-id: ${{ vars.APP_ID }}
2626
private-key: ${{ secrets.APP_PRIVATE_KEY }}
2727
permission-contents: write
28-
permission-pull-requests: write
2928

3029
- name: Publish changelog
3130
id: publish-changelog

‎.github/workflows/publish-release.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
required: false
1414

1515
permissions:
16-
contents: write
16+
contents: read
1717

1818
jobs:
1919
publish_release:
@@ -27,10 +27,9 @@ jobs:
2727
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2828
id: app-token
2929
with:
30-
app-id: ${{ vars.APP_ID }}
30+
client-id: ${{ vars.APP_CLIENT_ID }}
3131
private-key: ${{ secrets.APP_PRIVATE_KEY }}
3232
permission-contents: write
33-
permission-pull-requests: write
3433

3534
- name: Populate Release
3635
id: populate-release

0 commit comments

Comments
 (0)