Skip to content

Commit

Permalink
ci: update release-notes.yml authentication and permissions
Browse files Browse the repository at this point in the history
Updated the authentication and permissions in release-notes.yml to follow the recommendations from release-drafter to resolve 401 status errors.
  • Loading branch information
matrei committed Jan 8, 2025
1 parent 6359fc5 commit a0c1e66
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ on:
types: [opened, reopened, synchronize]
pull_request_target:
types: [opened, reopened, synchronize]
workflow_dispatch:

permissions:
contents: read

jobs:
update_release_draft:
permissions:
contents: read # limit to read access
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: "📝 Update Release Draft"
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a0c1e66

Please sign in to comment.