Skip to content

Commit aab384a

Browse files
authored
Create codeql-analysis.yml
1 parent 9798e50 commit aab384a

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master, develop, develop-* ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ master, develop, develop-* ]
9+
schedule:
10+
- cron: '15 2 * * 5'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'javascript' ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v3
29+
30+
# Initializes the CodeQL tools for scanning.
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v2
33+
with:
34+
languages: ${{ matrix.language }}
35+
36+
- name: Install modules
37+
run: npm i
38+
39+
- name: Lint
40+
run: npm run lint:check
41+
42+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
43+
# If this step fails, then you should remove it and run the build manually (see below)
44+
- name: Autobuild
45+
uses: github/codeql-action/autobuild@v2
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)