Skip to content

Commit 7241b7b

Browse files
authored
ci: explicit permissions and remove pull_request_target (#704)
1 parent 5c06db6 commit 7241b7b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
group: ci-${{ github.ref }}
1414
cancel-in-progress: true
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
xcodebuild-latest:
1821
name: xcodebuild (16)

.github/workflows/conventional-commits.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
name: 'PR Title is Conventional'
33

44
on:
5-
pull_request_target:
5+
pull_request:
66
types:
77
- opened
88
- edited
99
- synchronize
1010

11+
permissions:
12+
pull-requests: write
13+
contents: read
14+
1115
jobs:
1216
main:
1317
name: Validate PR title

0 commit comments

Comments
 (0)