Skip to content

Commit

Permalink
Add artifact attestation to workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed May 6, 2024
1 parent c8905f5 commit f4683b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
branches:
- master
permissions:
attestations: write
contents: read
id-token: write
packages: write
defaults:
run:
Expand Down Expand Up @@ -34,6 +36,10 @@ jobs:
- name: Run Cake
run: |
./cake upload-core-github
- name: Attest packages
uses: actions/[email protected]
with:
subject-path: out/pkg/debug/*.nupkg
- name: Upload artifacts
if: always()
uses: actions/[email protected]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
types:
- published
permissions:
attestations: write
contents: read
id-token: write
defaults:
run:
shell: bash
Expand Down Expand Up @@ -33,6 +35,10 @@ jobs:
- name: Run Cake
run: |
./cake upload-core-nuget -c Release
- name: Attest packages
uses: actions/[email protected]
with:
subject-path: out/pkg/release/*.nupkg
- name: Upload artifacts
if: always()
uses: actions/[email protected]
Expand Down

0 comments on commit f4683b8

Please sign in to comment.