Skip to content

Commit 8bb86e3

Browse files
feat(ci): add nuget package attestation
Add GitHub artifact attestation permissions and an actions/attest step in the deploy job so release nupkg artifacts include signed provenance metadata.
1 parent 6659c99 commit 8bb86e3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
url: 'https://www.nuget.org/packages/IntelliTect.Multitool'
5858
permissions:
5959
id-token: write # Required for OIDC token (NuGet trusted publishing)
60+
attestations: write # Required for GitHub artifact attestations
61+
artifact-metadata: write # Required to create artifact storage records
6062
contents: write # Required for softprops/action-gh-release
6163
steps:
6264
- name: Download artifact from build job
@@ -68,6 +70,10 @@ jobs:
6870
run: |
6971
$tagVersion = "${{ github.ref }}".substring(11)
7072
echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT
73+
- name: Attest NuGet package provenance
74+
uses: actions/attest@v4
75+
with:
76+
subject-path: IntelliTect.Multitool.${{ steps.tag-version.outputs.TAG_VERSION }}.nupkg
7177
- name: NuGet login
7278
uses: NuGet/login@v1
7379
id: login

0 commit comments

Comments
 (0)