You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+15-22Lines changed: 15 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
# the `language` matrix defined below to confirm you have the correct set of
10
10
# supported CodeQL languages.
11
11
#
12
+
# You may need to adjust this file for your specific repository or build process.
13
+
12
14
name: "CodeQL"
13
15
14
16
on:
@@ -48,12 +50,12 @@ jobs:
48
50
uses: actions/checkout@v3
49
51
50
52
# Installing DotNet version
51
-
- uses: actions/checkout@v3
52
53
- name: Setup dotnet ${{ matrix.dotnet-version }}
53
54
uses: actions/setup-dotnet@v3
54
55
with:
55
-
dotnet-version: ${{ matrix.dotnet-version }}
56
-
# You can test your matrix by printing the current dotnet version
56
+
dotnet-version: ${{ matrix.dot-version }}
57
+
58
+
# Display dotnet version for confirmation
57
59
- name: Display dotnet version
58
60
run: dotnet --version
59
61
@@ -62,30 +64,21 @@ jobs:
62
64
uses: github/codeql-action/init@v2
63
65
with:
64
66
languages: ${{ matrix.language }}
65
-
# If you wish to specify custom queries, you can do so here or in a config file.
66
-
# By default, queries listed here will override any specified in a config file.
67
-
# Prefix the list here with "+" to use these queries and those in the config file.
68
-
69
-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
70
-
# queries: security-extended,security-and-quality
71
-
72
-
73
-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
74
-
# If this step fails, then you should remove it and run the build manually (see below)
75
-
- name: Autobuild
76
-
uses: github/codeql-action/autobuild@v2
77
-
78
-
# ?? Command-line programs to run using the OS shell.
79
-
# ?? See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
80
-
81
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
82
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
67
+
# You can customize the queries here or in a config file.
83
68
69
+
# Manually build the C# project using dotnet build
70
+
- name: Build the C# project
71
+
if: matrix.language == 'csharp'
72
+
run: |
73
+
dotnet restore
74
+
dotnet build --configuration Release
75
+
76
+
# If autobuild fails, manually trigger the build here for other languages.
0 commit comments