Skip to content

Commit 8440d36

Browse files
committed
add permissions for github workflows
1 parent 19958b3 commit 8440d36

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
types: [ opened, reopened, synchronize ]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
docs:
1215
name: Test Docs

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
types: [ opened, reopened, synchronize ]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
ruff:
1013
permissions:

.github/workflows/pypi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [ published ]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
pypi:
1013
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
types: [ opened, reopened, synchronize ]
1010
workflow_dispatch:
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
pytest:
1417
name: Pytest

0 commit comments

Comments
 (0)