Skip to content

Commit f7347ff

Browse files
Update CodeQL configuration and analysis settings
- Added new paths and updated ignore patterns in `codeql-config.yml`. - Reformatted schedule and changed `fail-fast` strategy in `codeql-analysis.yml`. - Added step to set up .NET 9 for analysis. - Removed exclusion list and specified config file directly for CodeQL initialization.
1 parent b949e72 commit f7347ff

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

.github/codeql/codeql-config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
paths:
2+
- 1_CS
3+
- 2_Libs
4+
- 3_Web
5+
- 5_More
6+
paths-ignore:
7+
- '1_CS/Tasks/AsyncWindowsDesktopApp/**'
8+
- '1_CS/Tasks/AsyncSamples.sln'
9+
- '2_Libs/Parallel/ParallelSamples/WindowsAppTimer/**'
10+
- '2_Libs/Parallel/ParallelSamples/ParallelSamples.sln'
11+
- '2_Libs/FilesAndStreams/WinUIAppEditor/**'
12+
- '2_Libs/FilesAndStreams/FilesAndStreams.sln'
13+
- '2_Libs/LoggingAndMetrics/WindowsAppAnalytics/**'
14+
- '4_Apps/**'
15+
- '5_More/WinUI/**'

.github/workflows/codeql-analysis.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
# The branches below must be a subset of the branches above
1919
branches: [ main ]
2020
schedule:
21-
- cron: '35 0 * * 3'
21+
- cron: '35 0 * * 3' # Weekly on Wednesday at 00:35 UTC
2222

2323
jobs:
2424
analyze:
@@ -30,7 +30,7 @@ jobs:
3030
security-events: write
3131

3232
strategy:
33-
fail-fast: false
33+
fail-fast: true
3434
matrix:
3535
language: [ 'javascript', 'csharp' ]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
@@ -40,36 +40,29 @@ jobs:
4040
- name: Checkout repository
4141
uses: actions/checkout@v4
4242

43+
# Setup .NET 9
44+
- name: Setup .NET 9
45+
uses: actions/setup-dotnet@v4
46+
with:
47+
dotnet-version: 9.0.x
48+
4349
# Initializes the CodeQL tools for scanning.
4450
- name: Initialize CodeQL
4551
uses: github/codeql-action/init@v3
4652
with:
4753
languages: ${{ matrix.language }}
48-
exclude: |
49-
'**/1_CS/Tasks/AsyncWindowsDesktopApp/**'
50-
'**/1_CS/Tasks/AsyncSamples.sln'
51-
'**/2_Libs/Parallel/ParallelSamples/WindowsAppTimer/**'
52-
'**/2_Libs/Parallel/ParallelSamples/ParallelSamples.sln'
53-
'**/2_Libs/FilesAndStreams/WinUIAppEditor/**'
54-
'**/2_Libs/FilesAndStreams/FilesAndStreams.sln'
55-
'**/2_Libs/LoggingAndMetrics/WindowsAppAnalytics/**'
56-
'**/4_Apps/**'
57-
'**/5_More/WinUI/**'
54+
config-file: ./.github/codeql/codeql-config.yml
5855
# If you wish to specify custom queries, you can do so here or in a config file.
5956
# By default, queries listed here will override any specified in a config file.
6057
# Prefix the list here with "+" to use these queries and those in the config file.
6158
# queries: ./path/to/local/query, your-org/your-repo/queries@main
6259

63-
# Setup .NET 9
64-
- name: Setup .NET 9
65-
uses: actions/setup-dotnet@v4
66-
with:
67-
dotnet-version: 9.0.x
68-
6960
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
7061
# If this step fails, then you should remove it and run the build manually (see below)
7162
- name: Autobuild
7263
uses: github/codeql-action/autobuild@v3
64+
with:
65+
config-file: ./.github/codeql/codeql-config.yml
7366

7467
# ℹ️ Command-line programs to run using the OS shell.
7568
# 📚 https://git.io/JvXDl

0 commit comments

Comments
 (0)