Skip to content

Commit 8318aba

Browse files
authored
ci: scope down GitHub Token permissions (#581)
1 parent 45bd1e4 commit 8318aba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- "*"
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
run-checks-and-unit-tests:
1316
runs-on: ubuntu-latest

.github/workflows/remove-old-artifacts.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# Every day at 1am
66
- cron: "0 1 * * *"
77

8+
permissions:
9+
actions: write
10+
811
jobs:
912
remove-old-artifacts:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)