-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (36 loc) · 973 Bytes
/
codeql.yml
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 - action'
on:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
- cron: '0 19 * * 0'
jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: windows-2019
permissions:
security-events: write
strategy:
matrix:
node: [16.13.0]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
config-file: ./.github/codeql/codeql-config.yml
languages: javascript, cpp
- name: Build
run: |
yarn
yarn build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1