Skip to content

Commit 4e40dde

Browse files
committed
chore: add permissions for contents and pull-requests in workflows [patch]
1 parent d7eb9e8 commit 4e40dde

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/bump.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
bump:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
1013
if: |
1114
contains(github.event.head_commit.message, '[major]') ||
1215
contains(github.event.head_commit.message, '[minor]') ||

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113

1214
# Only run if this is a merge commit (PR merge) and contains version bump
1315
if: contains(github.event.head_commit.message, 'release: bump version to v')

0 commit comments

Comments
 (0)