forked from atom/node-keytar
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.06 KB
/
codeql.yml
File metadata and controls
45 lines (37 loc) · 1.06 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
name: "Code Scanning"
on: pull_request
jobs:
CodeQL:
name: ${{ matrix.friendlyName }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: ubuntu-latest
friendlyName: Ubuntu
- os: windows-latest
friendlyName: Windows
- os: macos-latest
friendlyName: macOS
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript, cpp
- run: |
sudo apt-get install libsecret-1-dev
if: ${{ matrix.os == 'ubuntu-latest' }}
name: Install additional dependencies
# Setup dependencies (and build native modules from source)
- name: Install dependencies
run: |
npm install
npm run build
# Run code analysis
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3