Skip to content

Commit baf88cd

Browse files
Copilotniik
andcommitted
Add permissions to lint job in CI workflow
Co-authored-by: niik <[email protected]>
1 parent 0702d8e commit baf88cd

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ on:
99
pull_request:
1010

1111
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: windows-2022
15+
permissions:
16+
contents: read
17+
timeout-minutes: 10
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
- name: Install Node.js
23+
uses: actions/[email protected]
24+
with:
25+
node-version: 22.14.0
26+
- name: Install dependencies
27+
run: yarn
28+
- name: Lint
29+
run: yarn check-prettier
30+
1231
build:
1332
name: Build
1433
runs-on: windows-2022
@@ -30,8 +49,6 @@ jobs:
3049
node-version: 22.14.0
3150
- name: Install and build dependencies
3251
run: yarn
33-
- name: Lint
34-
run: yarn check-prettier
3552
- name: Build
3653
run: yarn build
3754
- name: Test

0 commit comments

Comments
 (0)