Skip to content

Commit d060c2e

Browse files
committed
fix(ci): restrict default workflow token permissions
1 parent e93fd2b commit d060c2e

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- ".github/*"
1414
- "tests/*"
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
build:
1821
runs-on: ubuntu-latest

‎.github/workflows/pypi.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "1.*"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013
name: build dist files

‎.github/workflows/test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
- '*.lock'
2222

2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
lint:
2629
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)