Skip to content

Commit 47361e4

Browse files
ci: set explicit permissions on workflows missing them
1 parent 5dc9490 commit 47361e4

8 files changed

Lines changed: 24 additions & 0 deletions

.github/workflows/check_pypi_version.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- cron: '0 0 * * *'
1111
workflow_dispatch: # Allows manual triggering
1212

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

.github/workflows/docker-build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
branches:
2121
- main
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
docker_build_and_push:
2528
runs-on: ubuntu-latest

.github/workflows/docker-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tags:
77
- 'v[0-9]+.[0-9]+.[0-9]+'
88

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

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
push:
66
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
710
jobs:
811
pre-commit:
912
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
tags:
77
- 'v[0-9]+.[0-9]+.[0-9]+'
88

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

.github/workflows/ubuntu-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
branches:
2121
- main
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
build:
2528
runs-on: ubuntu-latest

.github/workflows/windows-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
branches:
2121
- main
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
build:
2528
runs-on: windows-latest

.github/workflows/windows_check_pypi_version.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- cron: '0 1 * * *'
1111
workflow_dispatch: # Allows manual triggering
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
check_version:
1518
runs-on: windows-latest

0 commit comments

Comments
 (0)