Skip to content

Commit b63a6b5

Browse files
authored
Restrict GitHub Actions workflow permissions (#1415)
1 parent 1cb5da5 commit b63a6b5

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/stale-bot.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Stale bot
22
on:
33
schedule:
44
- cron: '0 0 * * *' # Run every day at midnight
5+
6+
permissions:
7+
contents: write
8+
issues: write
9+
pull-requests: write
10+
511
jobs:
612
stale:
713
runs-on: ubuntu-latest
@@ -22,4 +28,3 @@ jobs:
2228
remove-stale-when-updated: true
2329
exempt-issue-labels: pinned
2430
exempt-pr-labels: pinned
25-

‎.github/workflows/test-main-matrix.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 'website/**'
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test_main_matrix:
1215
name: Tests [Node ${{ matrix.node_version }}]

‎.github/workflows/test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- 'website/**'
1111
workflow_dispatch:
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
lint:
1518
name: Lint

0 commit comments

Comments
 (0)