Skip to content

Commit 0a93d64

Browse files
author
Jake Soenneker
committed
reduces codeql surface
1 parent 407e059 commit 0a93d64

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/codeql.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: codeql
33
on:
44
push:
55
branches: [ "main" ]
6-
6+
paths-ignore:
7+
- 'test/**'
78

89
concurrency:
910
group: ${{ github.workflow }}-${{ github.ref }}
@@ -19,22 +20,26 @@ jobs:
1920
runs-on: ubuntu-latest
2021
name: CodeQL Analysis
2122

22-
strategy:
23-
fail-fast: false
24-
matrix:
25-
language: [ 'csharp' ]
26-
2723
steps:
2824
- name: Checkout repository
2925
uses: actions/checkout@v6
3026

27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v5
29+
with:
30+
dotnet-version: '10.x'
31+
3132
- name: Initialize CodeQL
3233
uses: github/codeql-action/init@v4
3334
with:
34-
languages: ${{ matrix.language }}
35+
languages: csharp
36+
build-mode: manual
37+
38+
- name: Restore src
39+
run: dotnet restore ./src
3540

36-
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v4
41+
- name: Build src
42+
run: dotnet build ./src --no-restore -c Release
3843

3944
- name: Perform CodeQL Analysis
4045
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)