Skip to content

Commit d0831dc

Browse files
authored
ci: harden lint workflow (#1091)
1 parent d8b1c63 commit d0831dc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/lint.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
run-linters:
1114
name: Run linters
@@ -21,12 +24,11 @@ jobs:
2124
node-version: 12
2225

2326
- name: Install dependencies
24-
run: yarn install --frozen-lockfile
27+
run: yarn install --frozen-lockfile --ignore-scripts
2528

2629
- name: Run linters
2730
uses: wearerequired/lint-action@a8497ddb33fb1205941fd40452ca9fff07e0770d
2831
with:
29-
github_token: ${{ secrets.github_token }}
3032
prettier: true
31-
auto_fix: true
33+
auto_fix: false
3234
prettier_extensions: 'css,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml,yml,sol'

0 commit comments

Comments
 (0)