Skip to content

Commit 2b26975

Browse files
authored
Feature/codeql (#6)
* test minimal CodeQL * test s-a-q query * add Tool project to pipeline * improve build step * add missing } * test pl on ubuntu and with dotnet build cmdlet * improve build step's cmdlet
1 parent 1aea4d3 commit 2b26975

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
analyze:
1111
name: CodeQL Analysis
12-
runs-on: windows-latest
12+
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
1515
id: checkout_repo
@@ -30,19 +30,9 @@ 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-
)
3733
3834
$projectsArray | ForEach-Object {
39-
$project = $PSItem
40-
41-
$targetsArray | ForEach-Object {
42-
dotnet msbuild $project `
43-
/t:$PSItem `
44-
/p:Configuration=Release
45-
}
35+
dotnet build $PSItem -c Release
4636
}
4737
4838
- name: Perform CodeQL Analysis

0 commit comments

Comments
 (0)