Skip to content

Commit

Permalink
ci: added github attestation to build assets
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed Dec 17, 2024
1 parent 5dd512e commit dc62cd1
Show file tree
Hide file tree
Showing 2 changed files with 26 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 @@ -108,6 +108,13 @@ jobs:

pack:
name: Package artifacts
permissions:
pull-requests: write
checks: write
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 @@ -128,6 +135,13 @@ jobs:
with:
name: Yubico.NativeShims.nupkg
path: Yubico.NativeShims.*.nupkg

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
subject-path: |
'${{ github.workspace }}/**/*.nupkg'
'${{ github.workspace }}/**/*.dll'
publish-internal:
name: Publish to internal NuGet
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ jobs:
runs-on: windows-2019
needs: run-tests
permissions:
pull-requests: write
checks: write
id-token: write
contents: read
packages: read
attestations: write
steps:
# Checkout the local repository
- uses: actions/checkout@v4
Expand Down Expand Up @@ -118,6 +122,14 @@ 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: |
'${{ github.workspace }}/**/*.nupkg'
'${{ github.workspace }}/**/*.snupkg'
'${{ github.workspace }}/**/*.dll'
# Package the OATH sample code source
- name: Save build artifacts
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit dc62cd1

Please sign in to comment.