Skip to content

Commit 81f9400

Browse files
authoredApr 11, 2025
ci: Explicit permissions on actions (#1155)
ci: explicit permissions on actions revoke pull_request_target
1 parent 591bb82 commit 81f9400

10 files changed

+32
-1
lines changed
 

‎.github/workflows/coverage.yml

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
coverage:
1114
name: Generate Combined Coverage

‎.github/workflows/functions_client.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- '.github/workflows/functions_client.yml'
1616
- 'packages/yet_another_json_isolate/**'
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
test:
2023
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/gotrue.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'packages/gotrue/**'
1414
- '.github/workflows/gotrue.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
test:
1821
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/postgrest.yml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- '.github/workflows/postgrest.yml'
1616
- 'packages/yet_another_json_isolate/**'
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
test:
2023
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/realtime_client.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'packages/realtime_client/**'
1414
- '.github/workflows/realtime_client.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
test:
1821
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/storage_client.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- 'packages/storage_client/**'
1313
- '.github/workflows/storage_client.yml'
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
test:
1720
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/supabase.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
- 'packages/realtime_client/**'
2424
- 'packages/storage_client/**'
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
test:
2831
name: Test SDK ${{ matrix.sdk }}

‎.github/workflows/supabase_flutter.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- 'packages/supabase/**'
2828
- 'packages/yet_another_json_isolate/**'
2929

30+
permissions:
31+
contents: read
32+
3033
jobs:
3134
test:
3235
name: Test Flutter v${{ matrix.flutter-version }}

‎.github/workflows/title-validation.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+
contents: read
13+
pull-requests: write
14+
1115
jobs:
1216
main:
1317
name: Validate PR title

‎.github/workflows/yet_another_json_isolate.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- 'packages/yet_another_json_isolate/**'
1414
- '.github/workflows/yet_another_json_isolate.yml'
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
test:
1821
name: Test SDK ${{ matrix.sdk }}

0 commit comments

Comments
 (0)