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
2323jobs :
2424 analyze :
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