Skip to content

Commit 0fed78b

Browse files
committed
Change Github Action permissions
Currently the commit-message-validator.yml Github Action raise an issue when the commit message is improper: Resource not accessible by integration Let's try if this would help. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent 84c46b6 commit 0fed78b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/commit-message-validator.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
name: Check if commit message body is not too short
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize, edited, reopened]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
verify-body-length:
913
runs-on: ubuntu-latest
1014
# set as non-voting for now.
1115
continue-on-error: true
1216

13-
permissions:
14-
contents: write
15-
pull-requests: write
16-
repository-projects: write
17-
1817
steps:
1918
- name: Checkout repository
2019
uses: actions/checkout@v4

0 commit comments

Comments
 (0)