Skip to content

Commit 8e71c8d

Browse files
committed
ci: fix reusable workflow startup
1 parent d555b0a commit 8e71c8d

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
name: conventional-commits
2+
name: 'Validate PR'
33

44
"on":
5-
pull_request:
6-
types:
7-
- opened
8-
- reopened
9-
- edited
10-
- synchronize
5+
pull_request_target:
6+
types: [opened, edited, reopened]
117

128
jobs:
139
conventional-commits:
1410
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.8
11+
permissions:
12+
pull-requests: read
13+
secrets: inherit
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
---
2-
name: prevent-file-change
2+
name: 'Prevent file change'
33

44
"on":
5-
pull_request:
6-
types:
7-
- opened
8-
- reopened
9-
- edited
10-
- synchronize
5+
pull_request_target:
6+
branches: [main]
117

128
jobs:
139
prevent-file-change:
1410
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.8
11+
permissions:
12+
pull-requests: write
1513
secrets:
1614
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)