Skip to content

Commit ea544d2

Browse files
committed
build: set permissions in workflows
1 parent 65206d8 commit ea544d2

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
lint:
1114
uses: ./.github/workflows/lint.yml

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
test:
88
name: Lint
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
1012
steps:
1113
- uses: actions/checkout@v5
1214
- uses: biomejs/setup-biome@v2

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jobs:
77
test:
88
name: Test (Node ${{ matrix.node }}, ${{ matrix.os }})
99
runs-on: ${{ matrix.os }}
10+
permissions:
11+
contents: read
1012
strategy:
1113
matrix:
1214
os: [ubuntu-latest, macos-latest, windows-latest]

0 commit comments

Comments
 (0)