Skip to content

Commit 7c69530

Browse files
committed
fix: Use reusable CodeQL workflow from actions-common
Replaces inline CodeQL workflow with the shared reusable workflow from reactiveui/actions-common. Enables C# and Actions scanning. Note: GitHub default CodeQL setup must be disabled in the repo security settings before this workflow can upload results.
1 parent a54f828 commit 7c69530

File tree

1 file changed

+9
-61
lines changed

1 file changed

+9
-61
lines changed

.github/workflows/codeql.yml

Lines changed: 9 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "CodeQL"
1+
name: CodeQL
22

33
on:
44
push:
@@ -13,63 +13,11 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
analyze-csharp:
17-
name: Analyze C#
18-
runs-on: ubuntu-latest
19-
env:
20-
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: 1
21-
22-
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v6
25-
with:
26-
fetch-depth: 0
27-
28-
- name: Setup .NET Environment
29-
uses: reactiveui/actions-common/.github/actions/dotnet-environment@main
30-
with:
31-
dotnet-versions: |
32-
8.0.x
33-
9.0.x
34-
10.0.x
35-
src-folder: src
36-
solution-file: reactiveui.slnx
37-
install-workloads: 'true'
38-
use-nbgv: 'false'
39-
40-
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v4
42-
with:
43-
languages: csharp
44-
build-mode: manual
45-
46-
- name: Build
47-
uses: reactiveui/actions-common/.github/actions/dotnet-build@main
48-
with:
49-
configuration: Release
50-
src-folder: src
51-
solution-file: reactiveui.slnx
52-
create-packages: 'false'
53-
54-
- name: Perform CodeQL Analysis
55-
uses: github/codeql-action/analyze@v4
56-
with:
57-
category: "/language:csharp"
58-
59-
analyze-actions:
60-
name: Analyze GitHub Actions
61-
runs-on: ubuntu-latest
62-
63-
steps:
64-
- name: Checkout repository
65-
uses: actions/checkout@v6
66-
67-
- name: Initialize CodeQL
68-
uses: github/codeql-action/init@v4
69-
with:
70-
languages: actions
71-
72-
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v4
74-
with:
75-
category: "/language:actions"
16+
codeql:
17+
uses: reactiveui/actions-common/.github/workflows/workflow-common-codeql.yml@main
18+
with:
19+
srcFolder: src
20+
solutionFile: reactiveui.slnx
21+
installWorkloads: true
22+
analyzeCSharp: true
23+
analyzeActions: true

0 commit comments

Comments
 (0)