Skip to content

Commit 3651b14

Browse files
authored
ci: scope down GitHub Token permissions (#1016)
1 parent 62be9f3 commit 3651b14

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
@@ -16,6 +16,9 @@ on:
1616
- 'ISSUE_TEMPLATE/**'
1717
- '**/remove-old-artifacts.yml'
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
markdown-link-check:
2124
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)