Skip to content

Commit

Permalink
Merge pull request #169
Browse files Browse the repository at this point in the history
ci: added github attestation to build assets
  • Loading branch information
DennisDyallo authored Dec 17, 2024
2 parents 07f5e09 + a2a7338 commit a7d9bbc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-nativeshims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ jobs:

pack:
name: Package artifacts
permissions:
id-token: write
contents: read
packages: read
attestations: write
runs-on: windows-2019
needs: [build-windows, build-linux-amd64, build-linux-arm64, build-macos]
steps:
Expand All @@ -130,6 +135,15 @@ jobs:
with:
name: Yubico.NativeShims.nupkg
path: Yubico.NativeShims.*.nupkg

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
Yubico.NativeShims/**/*.dll
Yubico.NativeShims/**/*.so
Yubico.NativeShims/**/*.dylib
Yubico.NativeShims.*.nupkg
publish-internal:
name: Publish to internal NuGet
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ jobs:
runs-on: windows-2019
needs: run-tests
permissions:
id-token: write
contents: read
packages: read
attestations: write
steps:
# Checkout the local repository
- uses: actions/checkout@v4
Expand Down Expand Up @@ -122,6 +124,20 @@ jobs:
Yubico.Core/src/bin/ReleaseWithDocs/**/*.dll
Yubico.YubiKey/src/bin/ReleaseWithDocs/**/*.dll
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.nupkg
Yubico.Core/src/bin/ReleaseWithDocs/*.nupkg
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.nupkg
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/*.snupkg
Yubico.Core/src/bin/ReleaseWithDocs/*.snupkg
Yubico.YubiKey/src/bin/ReleaseWithDocs/*.snupkg
Yubico.DotNetPolyfills/src/bin/ReleaseWithDocs/**/*.dll
Yubico.Core/src/bin/ReleaseWithDocs/**/*.dll
Yubico.YubiKey/src/bin/ReleaseWithDocs/**/*.dll
# Package the OATH sample code source
- name: Save build artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a7d9bbc

Please sign in to comment.