Skip to content

Commit 9d85d73

Browse files
authored
Merge branch 'main' into main
2 parents e1a2717 + 39faecf commit 9d85d73

File tree

10 files changed

+157
-133
lines changed

10 files changed

+157
-133
lines changed

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

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

3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
38+
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
3939
with:
4040
build-mode: none
4141
languages: ${{ matrix.language }}
4242

4343
- name: Perform CodeQL Analysis
44-
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
44+
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4545
with:
4646
category: '/language:${{ matrix.language }}'
4747

.github/workflows/concurrency-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Publish Artifacts
3333
if: always() && !cancelled()
34-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
34+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3535
with:
3636
name: ${{ matrix.os }}-${{ matrix.project }}-${{ matrix.version }}-coyoteoutput
3737
path: '**/*_CoyoteOutput.*'

.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@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
45+
uses: github/codeql-action/upload-sarif@4e94bd11f71e507f7f87df81788dff88d1dacbfb # v4.31.0
4646
with:
4747
sarif_file: results.sarif

.github/workflows/package-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: dotnet pack ./build/OpenTelemetry.proj --configuration Release /p:EnablePackageValidation=true /p:ExposeExperimentalFeatures=false /p:RunningDotNetPack=true
2828

2929
- name: Publish stable NuGet packages to Artifacts
30-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
30+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3131
with:
3232
name: packages-stable
3333
path: ./artifacts/package/release
@@ -51,7 +51,7 @@ jobs:
5151
run: dotnet pack ./build/OpenTelemetry.proj --configuration Release /p:EnablePackageValidation=true /p:ExposeExperimentalFeatures=true /p:RunningDotNetPack=true
5252

5353
- name: Publish experimental NuGet packages to Artifacts
54-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
54+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
5555
with:
5656
name: packages-experimental
5757
path: ./artifacts/package/release

.github/workflows/publish-packages-1.0.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
build-pack-publish:
2929
runs-on: windows-latest
3030
permissions:
31+
attestations: write
3132
contents: read
3233
id-token: write
3334
env:
@@ -75,6 +76,12 @@ jobs:
7576
}
7677
}
7778
79+
- name: Create GitHub attestations for DLLs
80+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
81+
with:
82+
subject-path: |
83+
./artifacts/bin/*/release_*/OpenTelemetry*.dll
84+
7885
- name: dotnet pack
7986
shell: pwsh
8087
env:
@@ -86,7 +93,7 @@ jobs:
8693
# renovate: datasource=nuget depName=dotnet-validate
8794
DOTNET_VALIDATE_VERSION: '0.0.1-preview.537'
8895
# renovate: datasource=nuget depName=Meziantou.Framework.NuGetPackageValidation.Tool
89-
MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION: '1.0.32'
96+
MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION: '1.0.34'
9097
run: |
9198
dotnet tool install --global dotnet-validate --version ${env:DOTNET_VALIDATE_VERSION} --allow-roll-forward
9299
dotnet tool install --global Meziantou.Framework.NuGetPackageValidation.Tool --version ${env:MEZIANTOU_VALIDATE_NUGET_PACKAGE_VERSION} --allow-roll-forward
@@ -153,7 +160,7 @@ jobs:
153160
154161
- name: Publish Artifacts
155162
id: upload-artifacts
156-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
163+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
157164
with:
158165
name: ${{ github.ref_name }}-packages
159166
path: ./artifacts/package/release

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
120120
<PackageVersion Include="Swashbuckle.AspNetCore" Version="9.0.6" />
121121
<PackageVersion Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
122-
<PackageVersion Include="Verify.Xunit" Version="31.0.4" />
122+
<PackageVersion Include="Verify.Xunit" Version="31.2.0" />
123123
<PackageVersion Include="xunit" Version="2.9.3" />
124124
<PackageVersion Include="xunit.runner.visualstudio" Version="[2.8.2,)" />
125125
</ItemGroup>

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,23 @@ cosign verify-blob \
216216
For more verification options please refer to the [cosign
217217
documentation](https://github.com/sigstore/cosign/blob/main/doc/cosign_verify-blob.md).
218218

219+
### Attestation
220+
221+
Starting with the `1.14.0` release the DLLs included in the packages pushed to
222+
NuGet are attested using [GitHub Artifact attestations](https://docs.github.com/actions/concepts/security/artifact-attestations).
223+
224+
To verify the attestation of a DLL inside a NuGet package use the [GitHub CLI](https://cli.github.com/):
225+
226+
```bash
227+
gh attestation verify --owner open-telemetry .\OpenTelemetry.dll
228+
```
229+
230+
> [!NOTE]
231+
> A successful verification outputs `Verification succeeded!`.
232+
233+
For more verification options please refer to the [`gh attestation verify`
234+
documentation](https://cli.github.com/manual/gh_attestation_verify).
235+
219236
## Contributing
220237

221238
For information about contributing to the project see:

examples/MicroserviceExample/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
- 9411:9411
66

77
rabbitmq:
8-
image: rabbitmq:4-management-alpine@sha256:5cbd7145b0306399ad68422c3350b6cbd1bb95704b39f5896480e5b6d4238a04
8+
image: rabbitmq:4-management-alpine@sha256:556d88a79852874255fd904048fae637e0158ff0a61201ceae7a701fcc48ba2f
99
ports:
1010
- 5672:5672
1111
- 15672:15672

0 commit comments

Comments
 (0)