Skip to content

Commit 638f969

Browse files
committed
fix
1 parent 70441a7 commit 638f969

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/validate-pr-title.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,24 @@ on:
77
- edited
88
- synchronize
99

10+
# Adding both pull-requests and contents permissions
1011
permissions:
11-
pull-requests: read
12+
pull-requests: write
13+
contents: read
14+
issues: read
1215

1316
jobs:
1417
main:
1518
name: Validate PR Title
1619
runs-on: ubuntu-latest
1720
steps:
21+
- uses: actions/checkout@v4 # Adding checkout action explicitly
22+
1823
- name: Validate PR Title with Conventional Commits
1924
uses: amannn/action-semantic-pull-request@v5
2025
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
# Using a different token syntax
27+
GITHUB_TOKEN: ${{ github.token }}
2228
with:
2329
types: |
2430
feat

0 commit comments

Comments
 (0)