Skip to content

Commit f0913c1

Browse files
authored
Create codeql-analysis.yml
1 parent 741ee65 commit f0913c1

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '37 3 * * 2'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
language: [ 'cpp', 'java' ]
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
25+
# Initializes the CodeQL tools for scanning.
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v1
28+
with:
29+
languages: ${{ matrix.language }}
30+
31+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
32+
# If this step fails, then you should remove it and run the build manually (see below)
33+
- name: Autobuild
34+
uses: github/codeql-action/autobuild@v1
35+
36+
# ℹ️ Command-line programs to run using the OS shell.
37+
# 📚 https://git.io/JvXDl
38+
39+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
40+
# and modify them (or add more) to build your code if your project
41+
# uses a compiled language
42+
43+
#- run: |
44+
# make bootstrap
45+
# make release
46+
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)