Skip to content

Commit 91f1d7f

Browse files
committed
Set up .net sdk before running codeql
Signed-off-by: Alireza Poodineh <[email protected]>
1 parent e8a68da commit 91f1d7f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ jobs:
5858
steps:
5959
- name: Checkout repository
6060
uses: actions/checkout@v4
61+
with:
62+
fetch-depth: 0
63+
submodules: recursive
6164

62-
# Add any setup steps before running the `github/codeql-action/init` action.
63-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
64-
# or others). This is typically only required for manual builds.
65-
# - name: Setup runtime (example)
66-
# uses: actions/setup-example@v1
67-
65+
- name: Setup .NET Core SDK
66+
uses: actions/setup-dotnet@v4
67+
with:
68+
dotnet-version: 9.0.x
69+
6870
# Initializes the CodeQL tools for scanning.
6971
- name: Initialize CodeQL
7072
uses: github/codeql-action/init@v3
@@ -85,6 +87,7 @@ jobs:
8587
# ℹ️ Command-line programs to run using the OS shell.
8688
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8789
- if: matrix.build-mode == 'manual'
90+
name: Build
8891
shell: bash
8992
run: |
9093
dotnet build -c Release

0 commit comments

Comments
 (0)