@@ -8,6 +8,7 @@ name: "CodeQL"
8
8
on :
9
9
schedule :
10
10
- cron : ' 0 0 * * *' # once in a day at 00:00
11
+ workflow_dispatch :
11
12
12
13
jobs :
13
14
analyze :
17
18
strategy :
18
19
fail-fast : false
19
20
matrix :
20
- # Override automatic language detection by changing the below list
21
- # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
22
21
language : ['csharp']
23
- # Learn more...
24
- # https://docs.github.com/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
25
22
26
23
steps :
27
24
- name : configure Pagefile
@@ -34,31 +31,16 @@ jobs:
34
31
- name : Checkout repository
35
32
uses : actions/checkout@v4
36
33
37
- # Initializes the CodeQL tools for scanning.
38
34
- name : Initialize CodeQL
39
35
uses : github/codeql-action/init@v3
40
36
with :
41
37
languages : ${{ matrix.language }}
42
- # If you wish to specify custom queries, you can do so here or in a config file.
43
- # By default, queries listed here will override any specified in a config file.
44
- # Prefix the list here with "+" to use these queries and those in the config file.
45
- # queries: ./path/to/local/query, your-org/your-repo/queries@main
46
38
47
- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
48
- # If this step fails, then you should remove it and run the build manually (see below)
49
- - name : Autobuild
50
- uses : github/codeql-action/autobuild@v3
39
+ - name : Setup dotnet
40
+ uses : actions/setup-dotnet@v4
51
41
52
- # Command-line programs to run using the OS shell.
53
- # https://git.io/JvXDl
54
-
55
- # If the Autobuild fails above, remove it and uncomment the following three lines
56
- # and modify them (or add more) to build your code if your project
57
- # uses a compiled language
58
-
59
- # - run: |
60
- # make bootstrap
61
- # make release
42
+ - name : dotnet pack OpenTelemetry.proj
43
+ run : dotnet pack OpenTelemetry.proj --configuration Release
62
44
63
45
- name : Perform CodeQL Analysis
64
46
uses : github/codeql-action/analyze@v3
0 commit comments