Skip to content

Commit 0cd1ba1

Browse files
authored
Merge pull request #21 from StaticRocket/master
ci(commit-check): fix permissions and allow bot to comment on prs
2 parents 6c23996 + 8c411f3 commit 0cd1ba1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/commit-check.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
---
22
name: Commit Check
33
on:
4-
push:
54
pull_request:
65
branches: ['master']
76

87
jobs:
98
commit-check:
109
name: Commit Check
1110
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
1215

1316
steps:
1417
- name: Checkout
1518
uses: actions/checkout@v4
1619
with:
1720
ref: ${{ github.event.pull_request.head.sha }}
1821

19-
- uses: commit-check/commit-check-action@v1
22+
- name: Check commit
23+
uses: commit-check/commit-check-action@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2026
with:
2127
message: true
2228
author-name: true

0 commit comments

Comments
 (0)