Skip to content

Commit a8f4bc8

Browse files
ci: limit the permissions of GitHub Actions (#312)
* ci: use repository owner as reviewer * ci: limit the permissions of GitHub Actions
1 parent 2f97113 commit a8f4bc8

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
contents: read
15+
1316
strategy:
1417
matrix:
1518
node-version: [23.x]

.github/workflows/format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
format:
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
contents: read
15+
1316
strategy:
1417
matrix:
1518
node-version: [23.x]

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
contents: read
15+
1316
strategy:
1417
matrix:
1518
node-version: [23.x]

.github/workflows/update-userscripts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ jobs:
88
update-userscripts:
99
runs-on: ubuntu-latest
1010

11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
strategy:
1216
matrix:
1317
node-version: [23.x]

0 commit comments

Comments
 (0)