Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit c5d5c7a

Browse files
authored
get CodeQL analysis working with native node modules (#267)
1 parent 1945238 commit c5d5c7a

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

.github/workflows/codeql.yml

+11-23
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
jobs:
99
CodeQL-Build:
1010

11+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
12+
runs-on: ${{ matrix.os }}
1113
strategy:
1214
fail-fast: false
13-
14-
15-
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
16-
runs-on: ubuntu-latest
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macos-latest]
1717

1818
steps:
1919
- name: Checkout repository
@@ -22,25 +22,13 @@ jobs:
2222
# Initializes the CodeQL tools for scanning.
2323
- name: Initialize CodeQL
2424
uses: github/codeql-action/init@v1
25-
# Override language selection by uncommenting this and choosing your languages
26-
# with:
27-
# languages: go, javascript, csharp, python, cpp, java
28-
29-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
30-
# If this step fails, then you should remove it and run the build manually (see below).
31-
- name: Autobuild
32-
uses: github/codeql-action/autobuild@v1
33-
34-
# ℹ️ Command-line programs to run using the OS shell.
35-
# 📚 https://git.io/JvXDl
36-
37-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
38-
# and modify them (or add more) to build your code if your project
39-
# uses a compiled language
25+
with:
26+
languages: javascript, cpp
4027

41-
#- run: |
42-
# make bootstrap
43-
# make release
28+
# Setup dependencies (and build native modules from source)
29+
- name: Install dependencies
30+
run: npm install
4431

32+
# Run code analysis
4533
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v1
34+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)