-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (73 loc) · 2.2 KB
/
Copy pathCode Analysis.yaml
File metadata and controls
81 lines (73 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: 'Code Analysis'
on:
push:
branches: ['main']
pull_request:
branches: ['main']
pull_request_target:
types:
- opened
- ready_for_review
schedule:
- cron: '00 00 * * *'
workflow_dispatch:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{matrix.language}}'
lint:
name: Lint test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
with:
version: 11.18.0
- name: Set Node Version
uses: actions/setup-node@v7
with:
node-version: 24.20.0
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Lint test
run: pnpm run lint
auto-assign:
if: github.event_name == 'pull_request_target'
runs-on: ubuntu-latest
permissions:
pull-requests: write
issues: write
contents: read
steps:
- name: Auto Assign
uses: kentaro-m/auto-assign-action@v2.0.2
with:
configuration-path: .github/auto_assign.yaml
repo-token: '${{ secrets.GITHUB_TOKEN }}'