Skip to content

Commit cbf79b3

Browse files
committed
Use read permissions by default in actions
1 parent e1bfae1 commit cbf79b3

7 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
schedule:
2222
- cron: '24 22 * * 4'
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
analyze:
2629
name: Analyze

.github/workflows/devcontainer.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, dev]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
devcontainer:
1114
name: DevContainer Build & Test

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Docs"
22
on:
33
- pull_request
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
docs:
710
runs-on: ubuntu-latest

.github/workflows/landing-page.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- feature/simplify-landing-page
88

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

.github/workflows/python-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
# Allows to run this workflow manually
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
deploy:
1518

.github/workflows/run.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114

1215
test-cygwin:

.github/workflows/test.yml

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

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)