Skip to content

Commit fc94ec8

Browse files
authored
ci: Add explicit permissions to CI workflows. (#276)
1 parent 6286d0f commit fc94ec8

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/check-commits.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- "main"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
check-commit-messages:
1518
runs-on: ubuntu-latest

.github/workflows/python-linter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ["main"]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint:
1114
runs-on: ubuntu-latest

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ["main"]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
mock-tests:
1114
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)