Skip to content

Commit a7d9bbc

Browse files
authored
Merge pull request #169
ci: added github attestation to build assets
2 parents 07f5e09 + a2a7338 commit a7d9bbc

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/build-nativeshims.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jobs:
110110

111111
pack:
112112
name: Package artifacts
113+
permissions:
114+
id-token: write
115+
contents: read
116+
packages: read
117+
attestations: write
113118
runs-on: windows-2019
114119
needs: [build-windows, build-linux-amd64, build-linux-arm64, build-macos]
115120
steps:
@@ -130,6 +135,15 @@ jobs:
130135
with:
131136
name: Yubico.NativeShims.nupkg
132137
path: Yubico.NativeShims.*.nupkg
138+
139+
- name: Generate artifact attestation
140+
uses: actions/attest-build-provenance@v2
141+
with:
142+
subject-path: |
143+
Yubico.NativeShims/**/*.dll
144+
Yubico.NativeShims/**/*.so
145+
Yubico.NativeShims/**/*.dylib
146+
Yubico.NativeShims.*.nupkg
133147
134148
publish-internal:
135149
name: Publish to internal NuGet

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ jobs:
6262
runs-on: windows-2019
6363
needs: run-tests
6464
permissions:
65+
id-token: write
6566
contents: read
6667
packages: read
68+
attestations: write
6769
steps:
6870
# Checkout the local repository
6971
- uses: actions/checkout@v4
@@ -122,6 +124,20 @@ jobs:
122124
Yubico.Core/src/bin/ReleaseWithDocs/**/*.dll
123125
Yubico.YubiKey/src/bin/ReleaseWithDocs/**/*.dll
124126
127+
- name: Generate artifact attestation
128+
uses: actions/attest-build-provenance@v2
129+
with:
130+
subject-path: |
131+
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.nupkg
132+
Yubico.Core/src/bin/ReleaseWithDocs/*.nupkg
133+
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.nupkg
134+
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.snupkg
135+
Yubico.Core/src/bin/ReleaseWithDocs/*.snupkg
136+
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.snupkg
137+
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/**/*.dll
138+
Yubico.Core/src/bin/ReleaseWithDocs/**/*.dll
139+
Yubico.YubiKey/src/bin/ReleaseWithDocs/**/*.dll
140+
125141
# Package the OATH sample code source
126142
- name: Save build artifacts
127143
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)