Skip to content

Commit

Permalink
Replaces app token step with contents-write permission block for crea…
Browse files Browse the repository at this point in the history
…ting a GH release (#50)
  • Loading branch information
mattsilber authored Jan 29, 2024
1 parent be91754 commit 33283d6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
environment: production
permissions:
contents: write
steps:
- uses: actions/[email protected]

- name: Generate Github App Token for Release Creation Access
uses: tibdex/[email protected]
id: generate_release_token
with:
app_id: ${{ secrets.APP_RELEASES_APP_ID }}
private_key: ${{ secrets.APP_RELEASES_APP_PRIVATE_KEY }}

- name: Generate Changelog for Release Body
id: generate_changelog
uses: mikepenz/[email protected]
Expand All @@ -63,5 +58,4 @@ jobs:
- name: Create Release For Tag
uses: ncipollo/[email protected]
with:
token: ${{ steps.generate_release_token.outputs.token }}
body: ${{ steps.generate_changelog.outputs.changelog }}

0 comments on commit 33283d6

Please sign in to comment.