Skip to content

Commit f83d8d9

Browse files
authored
Merge pull request #483 from lgtm-migrator/codeql
Add CodeQL workflow for GitHub code scanning
2 parents 1f7bd78 + 18b1423 commit f83d8d9

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
paths-ignore:
2+
- linearmodels/_version.py

.github/workflows/codeql.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: "38 4 * * 4"
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ python, javascript ]
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v3
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v2
31+
with:
32+
languages: ${{ matrix.language }}
33+
config-file: ./.github/codeql.yml
34+
queries: +security-and-quality
35+
36+
- name: Autobuild
37+
uses: github/codeql-action/autobuild@v2
38+
if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}
39+
40+
- name: Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v2
42+
with:
43+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)