Skip to content

Commit 204c856

Browse files
committed
set permissions
1 parent 76b631a commit 204c856

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Lint
22

3+
permissions: read-all
4+
35
on:
46
push:
57
branches: main

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
name: Publish Release
77

8+
permissions: read-all
9+
810
on:
911
push:
1012
tags:
@@ -36,6 +38,8 @@ jobs:
3638
build:
3739
name: Build Package
3840
runs-on: ubuntu-latest
41+
permissions:
42+
actions: write
3943

4044
steps:
4145
- uses: actions/checkout@v4

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Test
22

3+
permissions: read-all
4+
35
on:
46
push:
57
# branches: main
@@ -21,6 +23,8 @@ jobs:
2123

2224
test-linux:
2325
runs-on: ubuntu-latest
26+
permissions:
27+
actions: write
2428
strategy:
2529
matrix:
2630
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
@@ -85,6 +89,8 @@ jobs:
8589

8690
test-windows:
8791
runs-on: windows-latest
92+
permissions:
93+
actions: write
8894
defaults:
8995
run:
9096
shell: pwsh
@@ -139,6 +145,8 @@ jobs:
139145

140146
test-macos:
141147
runs-on: macos-latest
148+
permissions:
149+
actions: write
142150
strategy:
143151
matrix:
144152
python-version: ['3.9', '3.13']
@@ -192,6 +200,8 @@ jobs:
192200

193201
postgres:
194202
runs-on: ubuntu-latest
203+
permissions:
204+
actions: write
195205
# Service containers to run with `container-job`
196206
env:
197207
RDBMS: postgres
@@ -263,6 +273,8 @@ jobs:
263273

264274
linux-bash-complete:
265275
runs-on: ubuntu-latest
276+
permissions:
277+
actions: write
266278
strategy:
267279
matrix:
268280
python-version: ['3.9', '3.13']
@@ -315,6 +327,8 @@ jobs:
315327

316328
linux-fish-complete:
317329
runs-on: ubuntu-latest
330+
permissions:
331+
actions: write
318332
strategy:
319333
matrix:
320334
python-version: ['3.9', '3.13']
@@ -372,6 +386,8 @@ jobs:
372386

373387
macos-zsh-complete:
374388
runs-on: macos-latest
389+
permissions:
390+
actions: write
375391
strategy:
376392
matrix:
377393
python-version: ['3.9', '3.13']
@@ -436,6 +452,8 @@ jobs:
436452

437453
macos-bash-complete:
438454
runs-on: macos-latest
455+
permissions:
456+
actions: write
439457
strategy:
440458
matrix:
441459
python-version: ['3.9', '3.13']
@@ -490,6 +508,8 @@ jobs:
490508

491509
macos-fish-complete:
492510
runs-on: macos-latest
511+
permissions:
512+
actions: write
493513
strategy:
494514
matrix:
495515
python-version: ['3.9', '3.13']
@@ -552,6 +572,8 @@ jobs:
552572

553573
windows-powershell-complete:
554574
runs-on: windows-latest
575+
permissions:
576+
actions: write
555577
strategy:
556578
matrix:
557579
python-version: ['3.9', '3.13']

.github/workflows/update_coc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Update Code of Conduct
22

3+
permissions: read-all
4+
35
on:
46
workflow_dispatch:
57
inputs:

0 commit comments

Comments
 (0)