Skip to content

Commit 6086f10

Browse files
chore(ci): set permission for GitHub Action
1 parent e83dbb0 commit 6086f10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/commit-lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88
name: Lint commits
9+
permissions:
10+
contents: read
11+
pull-requests: write
912
jobs:
1013
lint-commits:
1114
runs-on: ubuntu-latest
@@ -20,4 +23,4 @@ jobs:
2023
- uses: actions/[email protected]
2124
- run: npm install conventional-changelog
2225
- run: npm install @commitlint/cli
23-
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
26+
- run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD

0 commit comments

Comments
 (0)