Skip to content

Commit 17da863

Browse files
committed
Declare permissions and prevent workflow racing. Fix lint
1 parent 14103c0 commit 17da863

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
# Explicitly declare permissions (security best practice)
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
14+
# Prevent multiple workflow runs from racing
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
919
jobs:
1020
lint:
1121
runs-on: ubuntu-latest
@@ -20,6 +30,8 @@ jobs:
2030

2131
- name: Install dependencies
2232
run: npm ci
33+
continue-on-error: false
2334

2435
- name: Run ESLint
2536
run: npm run lint
37+
continue-on-error: false

src/components/ui/Text/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { clsx } from 'clsx';
99

1010
const COMPONENT_NAME = 'Text';
1111

12-
const TAGS = ['div', 'span', 'p', 'label']
12+
const TAGS = ['div', 'span', 'p', 'label'];
1313

1414
export type TextProps = {
1515
children: React.ReactNode;

0 commit comments

Comments
 (0)