Skip to content

Commit 5ee9d03

Browse files
sjMugen87
andauthored
Enable GitHub code scanning with CodeQL (to replace the soon-to-be-deprecated LGTM.com) (#25056)
* Create codeql.yml * Update codeql.yml * Create codeql-config.yml * Update codeql.yml * Update codeql-config.yml * Update and rename codeql.yml to codeql-code-scanning.yml * Update codeql-code-scanning.yml * Update codeql-code-scanning.yml * Update codeql-config.yml * Update codeql-config.yml * Update codeql-config.yml Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
1 parent 1e61472 commit 5ee9d03

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/codeql-config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
paths-ignore:
2+
- "docs/prettify/**/*.*"
3+
- "editor/js/libs/**/*.*"
4+
- "examples/jsm/libs/**/*.*"
5+
- "examples/jsm/loaders/ifc/**/*.*"
6+
- "build/*.*"
7+
- "manual/3rdparty/**/*.*"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "dev" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "dev" ]
9+
schedule:
10+
- cron: '29 23 * * 0'
11+
workflow_dispatch:
12+
13+
jobs:
14+
analyze:
15+
name: Analyze
16+
runs-on: ubuntu-latest
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'javascript' ]
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v3
30+
31+
# Initializes the CodeQL tools for scanning.
32+
- name: Initialize CodeQL
33+
uses: github/codeql-action/init@v2
34+
with:
35+
languages: ${{ matrix.language }}
36+
config-file: ./.github/codeql-config.yml
37+
queries: security-and-quality
38+
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v2
41+
42+
- name: Perform CodeQL Analysis
43+
uses: github/codeql-action/analyze@v2
44+
with:
45+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)