Skip to content

Commit fb9576b

Browse files
authored
[repo] Switch CodeQL workflow to manual build (#5373)
1 parent af2b551 commit fb9576b

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ name: "CodeQL"
88
on:
99
schedule:
1010
- cron: '0 0 * * *' # once in a day at 00:00
11+
workflow_dispatch:
1112

1213
jobs:
1314
analyze:
@@ -17,11 +18,7 @@ jobs:
1718
strategy:
1819
fail-fast: false
1920
matrix:
20-
# Override automatic language detection by changing the below list
21-
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
2221
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
2522

2623
steps:
2724
- name: configure Pagefile
@@ -34,31 +31,16 @@ jobs:
3431
- name: Checkout repository
3532
uses: actions/checkout@v4
3633

37-
# Initializes the CodeQL tools for scanning.
3834
- name: Initialize CodeQL
3935
uses: github/codeql-action/init@v3
4036
with:
4137
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
4638

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
5141

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
6244

6345
- name: Perform CodeQL Analysis
6446
uses: github/codeql-action/analyze@v3

OpenTelemetry.proj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<TestProjects Include="test\**\*.csproj" />
66

77
<!-- Not pack SemanticConventions project for now -->
8-
<SolutionProjects Remove="src\OpenTelemetry.SemanticConventions\OpenTelemetry.SemanticConventions.csproj" />
98
<PackProjects Remove="src\OpenTelemetry.SemanticConventions\OpenTelemetry.SemanticConventions.csproj" />
109
</ItemGroup>
1110

0 commit comments

Comments
 (0)