Skip to content

Commit 54c0044

Browse files
authored
Merge branch 'main' into aspnetcore-route-fix
2 parents b3b48e3 + df80dbe commit 54c0044

File tree

101 files changed

+2566
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+2566
-564
lines changed

.github/codeql/codeql-config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "CodeQL config"
2+
3+
queries:
4+
- uses: security-extended
5+
6+
# Disable specific queries
7+
query-filters:
8+
- exclude:
9+
id:
10+
- actions/untrusted-checkout
11+
- actions/untrusted-checkout/high
12+
- actions/untrusted-checkout/medium

.github/component_owners.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ components:
1717
src/OpenTelemetry.Extensions.AWS/:
1818
- srprash
1919
- normj
20+
- lukeina2z
2021
src/OpenTelemetry.Extensions.Enrichment/:
2122
- evgenyfedorov2
2223
- dariusclay
@@ -30,10 +31,12 @@ components:
3031
- srprash
3132
- normj
3233
- muhammad-othman
34+
- lukeina2z
3335
src/OpenTelemetry.Instrumentation.AWSLambda/:
3436
- rypdal
3537
- Oberon00
3638
- normj
39+
- lukeina2z
3740
src/OpenTelemetry.Instrumentation.Cassandra/:
3841
- xsoheilalizadeh
3942
src/OpenTelemetry.Instrumentation.ConfluentKafka/:
@@ -71,6 +74,7 @@ components:
7174
src/OpenTelemetry.Resources.AWS/:
7275
- srprash
7376
- normj
77+
- lukeina2z
7478
src/OpenTelemetry.Resources.Azure/:
7579
- rajkumar-rangaraj
7680
src/OpenTelemetry.Resources.Container/:
@@ -92,6 +96,7 @@ components:
9296
src/OpenTelemetry.Sampler.AWS/:
9397
- srprash
9498
- normj
99+
- lukeina2z
95100
test/OpenTelemetry.Exporter.Geneva.Benchmarks/:
96101
- rajkumar-rangaraj
97102
- xiang17
@@ -114,6 +119,7 @@ components:
114119
test/OpenTelemetry.Extensions.AWS.Tests/:
115120
- srprash
116121
- normj
122+
- lukeina2z
117123
test/OpenTelemetry.Extensions.Enrichment.Tests/:
118124
- evgenyfedorov2
119125
- dariusclay
@@ -127,10 +133,12 @@ components:
127133
- srprash
128134
- normj
129135
- muhammad-othman
136+
- lukeina2z
130137
test/OpenTelemetry.Instrumentation.AWSLambda.Tests/:
131138
- rypdal
132139
- Oberon00
133140
- normj
141+
- lukeina2z
134142
test/OpenTelemetry.Instrumentation.Cassandra.Tests/:
135143
- xsoheilalizadeh
136144
test/OpenTelemetry.Instrumentation.ConfluentKafka.Tests/:
@@ -164,6 +172,7 @@ components:
164172
test/OpenTelemetry.Resources.AWS.Tests/:
165173
- srprash
166174
- normj
175+
- lukeina2z
167176
test/OpenTelemetry.Resources.Azure.Tests/:
168177
- rajkumar-rangaraj
169178
test/OpenTelemetry.Resources.Container.Tests/:
@@ -182,3 +191,4 @@ components:
182191
test/OpenTelemetry.Sampler.AWS.Tests/:
183192
- srprash
184193
- normj
194+
- lukeina2z

.github/workflows/Component.BuildTest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
token: ${{ secrets.CODECOV_TOKEN }}
173173

174174
- name: Publish ${{ steps.resolve-project.outputs.name }} NuGet packages to Artifacts
175-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
175+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
176176
# Only publish packages from the first job, which should be net462 for Windows in most cases, which is preferred for .NET Framework support
177177
if: ${{ matrix.os == 'windows-latest' && inputs.pack && strategy.job-index == 0 }}
178178
with:

.github/workflows/ci-Exporter.OneCollector-Integration.yml

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,21 @@ jobs:
2424

2525
build-integration-test:
2626
needs: authorize
27-
2827
strategy:
29-
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
28+
fail-fast: false
3029
matrix:
3130
os: [ windows-latest, ubuntu-24.04 ]
3231
version: [ net462, net8.0 ]
3332
exclude:
3433
- os: ubuntu-24.04
3534
version: net462
36-
37-
runs-on: ${{ matrix.os }}
38-
steps:
39-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
40-
with:
41-
ref: refs/pull/${{ github.event.pull_request.number }}/merge # Run on the merge commit once approved
42-
43-
- name: Setup dotnet
44-
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
45-
46-
- name: dotnet restore Component.proj for OpenTelemetry.Exporter.OneCollector
47-
run: dotnet restore build/Projects/Component.proj -p:BUILD_COMPONENT=OpenTelemetry.Exporter.OneCollector
48-
49-
- name: dotnet build Component.proj for OpenTelemetry.Exporter.OneCollector
50-
run: dotnet build build/Projects/Component.proj --configuration Release --no-restore -p:BUILD_COMPONENT=OpenTelemetry.Exporter.OneCollector
51-
52-
- name: dotnet test Component.proj for OpenTelemetry.Exporter.OneCollector
53-
run: dotnet test build/Projects/Component.proj --filter CategoryName=OneCollectorIntegrationTests --framework ${{ matrix.version }} --configuration Release --no-restore --no-build -p:BUILD_COMPONENT=OpenTelemetry.Exporter.OneCollector --logger:"console;verbosity=detailed"
54-
env:
55-
OTEL_ONECOLLECTOR_INSTRUMENTATION_KEY: ${{ secrets.OTEL_ONECOLLECTOR_INSTRUMENTATION_KEY }}
35+
uses: ./.github/workflows/integration-test-reusable.yml
36+
with:
37+
component: OpenTelemetry.Exporter.OneCollector
38+
os: ${{ matrix.os }}
39+
version: ${{ matrix.version }}
40+
test-filter: OneCollectorIntegrationTests
41+
env-var-name: OTEL_ONECOLLECTOR_INSTRUMENTATION_KEY
42+
checkout-ref: refs/pull/${{ github.event.pull_request.number }}/merge
43+
secrets:
44+
instrumentation-key: ${{ secrets.OTEL_ONECOLLECTOR_INSTRUMENTATION_KEY }}

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build
22

33
on:
4+
merge_group:
5+
types: [ checks_requested ]
46
push:
57
branches: [ 'main' ]
68
pull_request:

.github/workflows/codeql-analysis-steps.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ jobs:
3535
show-progress: false
3636

3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
38+
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
3939
with:
4040
build-mode: none
4141
languages: ${{ matrix.language }}
42+
config-file: ./.github/codeql/codeql-config.yml
4243

4344
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
45+
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4546
with:
4647
category: '/language:${{ matrix.language }}'
4748

.github/workflows/fossa.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ permissions:
1111
jobs:
1212
fossa:
1313
runs-on: ubuntu-latest
14+
env:
15+
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
1416
steps:
1517
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1618

1719
- uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
20+
if: env.FOSSA_API_KEY != ''
1821
with:
19-
api-key: ${{secrets.FOSSA_API_KEY}}
22+
api-key: ${{ secrets.FOSSA_API_KEY }}
2023
team: OpenTelemetry
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Reusable Integration Test
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
workflow_call:
8+
inputs:
9+
component:
10+
description: 'Component to build and test'
11+
required: true
12+
type: string
13+
os:
14+
description: 'Operating system to run on'
15+
required: true
16+
type: string
17+
version:
18+
description: 'Framework version to test'
19+
required: true
20+
type: string
21+
test-filter:
22+
description: 'Test filter category'
23+
required: true
24+
type: string
25+
env-var-name:
26+
description: 'Environment variable name for instrumentation key'
27+
required: false
28+
type: string
29+
default: 'INSTRUMENTATION_KEY'
30+
checkout-ref:
31+
description: 'Git ref to checkout'
32+
required: false
33+
type: string
34+
default: ''
35+
secrets:
36+
instrumentation-key:
37+
description: 'Instrumentation key for testing'
38+
required: false
39+
40+
jobs:
41+
build-and-test:
42+
runs-on: ${{ inputs.os }}
43+
steps:
44+
# Security: When called from pull_request_target with untrusted PR code,
45+
# this checkout requires prior approval via the 'authorize' job environment.
46+
# The workflow has limited permissions (contents: read) and uses persist-credentials: false
47+
# to prevent credential theft.
48+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
49+
with:
50+
persist-credentials: false
51+
ref: ${{ inputs.checkout-ref }}
52+
53+
- name: Setup dotnet
54+
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
55+
56+
- name: dotnet restore Component.proj
57+
run: dotnet restore build/Projects/Component.proj -p:BUILD_COMPONENT=${{ inputs.component }}
58+
59+
- name: dotnet build Component.proj
60+
run: dotnet build build/Projects/Component.proj --configuration Release --no-restore -p:BUILD_COMPONENT=${{ inputs.component }}
61+
62+
- name: dotnet test Component.proj
63+
run: dotnet test build/Projects/Component.proj --filter CategoryName=${{ inputs.test-filter }} --framework ${{ inputs.version }} --configuration Release --no-restore --no-build -p:BUILD_COMPONENT=${{ inputs.component }} --logger:"console;verbosity=detailed"
64+
env:
65+
${{ inputs.env-var-name }}: ${{ secrets.instrumentation-key }}

.github/workflows/ossf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# uploads of run results in SARIF format to the repository Actions tab.
3434
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
3535
- name: "Upload artifact"
36-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3737
with:
3838
name: SARIF file
3939
path: results.sarif
@@ -42,6 +42,6 @@ jobs:
4242
# Upload the results to GitHub's code scanning dashboard (optional).
4343
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
4444
- name: "Upload to code-scanning"
45-
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
45+
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4646
with:
4747
sarif_file: results.sarif

.github/workflows/publish-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Publish Artifacts
9696
id: upload-artifacts
97-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
97+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
9898
with:
9999
name: ${{ github.ref_name }}-packages
100100
path: ./artifacts/package/release
@@ -105,7 +105,7 @@ jobs:
105105
# renovate: datasource=nuget depName=dotnet-validate
106106
DOTNET_VALIDATE_VERSION: '0.0.1-preview.537'
107107
# renovate: datasource=nuget depName=Meziantou.Framework.NuGetPackageValidation.Tool
108-
MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION: '1.0.31'
108+
MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION: '1.0.34'
109109
run: |
110110
dotnet tool install --global dotnet-validate --version ${env:DOTNET_VALIDATE_VERSION} --allow-roll-forward
111111
dotnet tool install --global Meziantou.Framework.NuGetPackageValidation.Tool --version ${env:MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION} --allow-roll-forward

0 commit comments

Comments
 (0)