Skip to content

Commit

Permalink
feat(workflow): update permissions for release on tag
Browse files Browse the repository at this point in the history
Added specific permissions for the release-on-tag workflow to enhance
security and ensure the workflow has only necessary access. The content
permissions are set to write, while issues and pull-requests are set to
read, aligning with best practices for GitHub Actions.
  • Loading branch information
YidiDev committed Oct 5, 2024
1 parent 09a6144 commit 7a218a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- 'v*.*.*'

permissions:
contents: write
issues: read
pull-requests: read

jobs:
release:
name: Release
Expand Down

0 comments on commit 7a218a9

Please sign in to comment.