Skip to content

Commit

Permalink
feat: Add explicit GITHUB_TOKEN permissions for release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lavie committed Jan 29, 2025
1 parent 0d235bd commit 42eef72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ jobs:
runs-on: ubuntu-latest
# Only run this job if we're not already creating a release
if: "!contains(github.event.head_commit.message, 'chore(release):')"
permissions:
contents: write # Needed for creating tags and releases

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }} # Using built-in token with explicitly granted permissions

- uses: actions/setup-python@v5
with:
Expand Down

0 comments on commit 42eef72

Please sign in to comment.