Skip to content

Commit 220f11d

Browse files
authored
Feature/codeql (#4)
* test minimal CodeQL * test s-a-q query * add Tool project to pipeline * improve build step
1 parent 1a3dc79 commit 220f11d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,19 @@ jobs:
3030
'.\src\Microsoft.OpenApi.Readers\Microsoft.OpenApi.Readers.csproj',
3131
'.\src\Microsoft.OpenApi.Tool\Microsoft.OpenApi.Tool.csproj'
3232
)
33+
$targetsArray = @(
34+
'restore',
35+
'build'
36+
)
3337
3438
$projectsArray | ForEach-Object {
35-
dotnet msbuild $PSItem `
36-
/t:restore `
37-
/p:Configuration=Release
38-
39-
dotnet msbuild $PSItem `
40-
/t:build `
41-
/p:Configuration=Release
42-
}
39+
$project = $PSItem
40+
41+
$targetsArray | ForEach-Object {
42+
dotnet msbuild $project `
43+
/t:$PSItem `
44+
/p:Configuration=Release
45+
}
4346
4447
- name: Perform CodeQL Analysis
4548
id: analyze_codeql

0 commit comments

Comments
 (0)