Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves: Add native GitHub continuous code security and quality analysis #1188

Open
wants to merge 122 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
af8f510
Create CodeQL pipeline (#2)
aleks-ivanov Jul 26, 2021
ade594d
Merge branch 'microsoft:main' into feature/codeql
aleks-ivanov Jul 28, 2021
db9a41e
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 29, 2021
8545673
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 30, 2021
b1b4524
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 14, 2021
2f8e9a1
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 17, 2021
1a351b5
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 20, 2021
9e6a2b0
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 21, 2021
5eda278
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 28, 2021
eee4dda
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 1, 2021
90f0cbb
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 2, 2021
02e01b9
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 3, 2021
d1d7e1f
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 9, 2021
6952e8a
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 10, 2021
2a82508
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 1, 2021
a832bb8
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 7, 2021
53025ce
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 12, 2021
0a2e644
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 21, 2021
e8a9746
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 10, 2021
46475e0
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 19, 2021
84de5c2
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 20, 2021
e97fa68
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 21, 2021
7012ae3
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 22, 2021
10877b0
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 8, 2021
f69476a
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 10, 2021
906243b
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 11, 2021
dd07b9c
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 14, 2021
95f6a3e
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 15, 2021
5016a28
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 18, 2021
008e313
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 4, 2022
a4bf218
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 7, 2022
e2c25f5
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 19, 2022
516cac8
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 21, 2022
7e2a9ef
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 28, 2022
55560a7
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 29, 2022
cce0a8c
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 1, 2022
e7861ef
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 3, 2022
2c0eda0
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 4, 2022
250be8e
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 23, 2022
f14f970
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 4, 2022
25d753e
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 5, 2022
d8ad4df
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 8, 2022
4d6cff6
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 9, 2022
eab7356
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 12, 2022
c576b33
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 26, 2022
edd9e13
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 29, 2022
e6bbe53
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 30, 2022
213e805
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 31, 2022
f8c7b64
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 1, 2022
0cee08b
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 2, 2022
27ff1a7
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 7, 2022
8091f95
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 9, 2022
8986586
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 21, 2022
66f218e
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 1, 2022
b6a86f5
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 7, 2022
5fa2e31
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 8, 2022
47f5892
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 17, 2022
73b358c
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 22, 2022
7a5930f
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 23, 2022
6698b67
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 24, 2022
64ee256
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 6, 2022
d37937d
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 7, 2022
4b9d9af
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 16, 2022
ffcc741
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 19, 2022
4643ef6
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 11, 2022
05ebe83
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 16, 2022
187a4d9
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 30, 2022
c75897e
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 2, 2022
a282f5a
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 10, 2022
f49904e
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 14, 2022
467fa5e
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 17, 2022
122d6cf
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 4, 2022
491b3b2
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 11, 2022
71f0e95
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 14, 2022
048dcfa
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 18, 2022
65ffc53
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 19, 2022
7be9d5d
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 25, 2022
658eac7
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 28, 2022
e1679ce
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 9, 2022
af7a1d0
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 16, 2022
4983971
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 18, 2022
8ea9ad5
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 2, 2022
6f664de
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 5, 2023
50f9cc9
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 8, 2023
60f6c74
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 6, 2023
732284f
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 19, 2023
16a930b
Merge branch 'main' into feature/codeql
aleks-ivanov May 9, 2023
d5f644c
Merge branch 'main' into feature/codeql
aleks-ivanov May 31, 2023
23c6d17
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 15, 2023
b865fd2
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 29, 2023
238d456
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 7, 2023
d24c782
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 9, 2023
783e25d
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 12, 2023
06b808b
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 22, 2023
5cfb18b
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 26, 2023
2182648
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 8, 2023
3fec442
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 19, 2023
9eaf629
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 19, 2023
dd50190
Merge branch 'main' into feature/codeql
aleks-ivanov Oct 24, 2023
b5b9af9
Merge branch 'main' into feature/codeql
aleks-ivanov Nov 29, 2023
db38579
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 6, 2023
f12324b
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 22, 2023
9557de1
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 5, 2024
d28c1e9
Merge branch 'main' into feature/codeql
aleks-ivanov Jan 27, 2024
5cfeda0
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 16, 2024
36a6928
Merge branch 'main' into feature/codeql
aleks-ivanov Feb 28, 2024
bcd283b
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 1, 2024
d14da7c
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 2, 2024
fc2117c
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 7, 2024
72ccde6
Merge branch 'main' into feature/codeql
aleks-ivanov Mar 20, 2024
40532bc
Merge branch 'main' into feature/codeql
aleks-ivanov Apr 30, 2024
555e4e7
Merge branch 'main' into feature/codeql
aleks-ivanov May 7, 2024
8e60f27
Merge branch 'main' into feature/codeql
aleks-ivanov May 29, 2024
82f4c57
Merge branch 'main' into feature/codeql
aleks-ivanov Jun 5, 2024
59adb38
Merge branch 'main' into feature/codeql
aleks-ivanov Jul 4, 2024
1a7b94c
Merge branch 'main' into feature/codeql
aleks-ivanov Aug 31, 2024
11167bd
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 4, 2024
23693df
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 7, 2024
f3c9b5c
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 10, 2024
71c0b76
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 14, 2024
7d58faa
Merge branch 'main' into feature/codeql
aleks-ivanov Sep 28, 2024
b202774
Merge branch 'main' into feature/codeql
aleks-ivanov Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CodeQL Analysis

on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:

jobs:
analyze:
name: Analyze
runs-on: windows-latest
steps:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2

- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
queries: security-and-quality
languages: csharp

- name: Build solution
run: |
$pathToSolution = "src/MIDebugEngine.sln"
$buildConfiguration = "Debug"
$useSharedCompilation = "false"
$testProjects = "MICoreUnitTests/MICoreUnitTests.csproj", "JDbgUnitTests/JDbgUnitTests.csproj", "SSHDebugTests/SSHDebugUnitTests.csproj", "../test/CppTests/CppTests.csproj", "../test/DebugAdapterRunner/DebugAdapterRunner.csproj", "../test/DebuggerTesting/DebuggerTesting.csproj" # separate paths with comma as in: "test1", "test2"

dotnet nuget locals all --clear

# remove one or more test projects,
# so that CodeQL only analyzes the source code
dotnet sln $pathToSolution remove $testProjects

dotnet clean $pathToSolution `
--configuration $buildConfiguration

nuget restore $pathToSolution

msbuild $pathToSolution `
-property:Configuration=$buildConfiguration `
-property:UseSharedCompilation=$useSharedCompilation `
-target:rebuild

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)