Skip to content

Commit 504b5a6

Browse files
authored
Token permissions (#1580)
* Run continuous_integration.yml with read-only permissions Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]> * Future-proof other workflow tokens Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]> --------- Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
1 parent 616bc30 commit 504b5a6

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/auto-assignment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
permissions:
1010
contents: read
11-
issues: write
12-
pull-requests: write
1311

1412
jobs:
1513
welcome:
1614
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
1718
steps:
1819
- uses: actions/checkout@v3
1920
- uses: actions/github-script@v6

.github/workflows/continuous_integration.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
black:
1013
runs-on: ubuntu-latest

.github/workflows/stale-issues-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
close-issues:
811
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)