Skip to content

Commit 576f90a

Browse files
author
Paul Johnson
authored
Speedup codeql run (#11877)
* Speedup codeql run * npm build once, ignore node_modules * Misc cleanup
1 parent 9a14553 commit 576f90a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/config/codeql-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ name: "CodeQL config"
22

33
paths:
44
- src
5+
6+
paths-ignore:
7+
- '**/node_modules'

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
CodeQL-Build:
1212

13-
runs-on: windows-latest
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout repository
@@ -22,9 +22,8 @@ jobs:
2222
with:
2323
config-file: ./.github/config/codeql-config.yml
2424

25-
- run: |
26-
echo "Run Umbraco-CMS build"
27-
pwsh -command .\build\build.ps1
25+
- name: Build
26+
run: dotnet build umbraco-netcore-only.sln # also runs npm build
2827

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

0 commit comments

Comments
 (0)