Skip to content

Commit 39faecf

Browse files
[Infra] Attest DLLs with GitHub Attestations (#6646)
1 parent 7072855 commit 39faecf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

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

Lines changed: 7 additions & 0 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:

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:

0 commit comments

Comments
 (0)