Skip to content

Commit ec1c82c

Browse files
committed
Reduce permissions for GitHub actions tokens
1 parent 3e4312b commit ec1c82c

4 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-virtualenv-caches.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
schedule:
1010
- cron: '0 4 * * MON'
1111

12+
permissions: {}
13+
1214
jobs:
1315
build-lint-virtualenvs:
1416
runs-on: ubuntu-latest

.github/workflows/cleanup-pr-tag.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Delete closed PR container image tag
66
types:
77
- closed
88

9+
permissions:
10+
packages: write
11+
912
jobs:
1013
cleanup-pr-tag:
1114
runs-on: ubuntu-latest

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
branches:
1111
- master
1212

13+
permissions: {}
14+
1315
jobs:
1416
build-and-publish:
1517
# Skip job on forks

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- master
66

7+
permissions: {}
8+
79
jobs:
810
lints:
911
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)