Skip to content

Commit 9ceb498

Browse files
committed
ci: add permissions block to release workflow
Explicitly grant the minimum required permissions so the workflow keeps working even after GITHUB_TOKEN's default permissions are switched to read-only in the future. - contents: write (required for git tag push / gh release create)
1 parent aa8e2a0 commit 9ceb498

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77

8+
# NOTE: GITHUB_TOKEN に必要最小限の権限のみを付与
9+
# - contents: write → git tag push / gh release create に必要
10+
permissions:
11+
contents: write
12+
813
jobs:
914
release:
1015
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)