Skip to content

Commit da020e1

Browse files
Fix publish job: add contents:write permission and skip NuGet OIDC on… (#163)
… dry-run
1 parent 5c41a0d commit da020e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ jobs:
367367
if: ${{ fromJSON(needs.preflight.outputs.skip-publish) == false }}
368368
permissions:
369369
id-token: write
370+
contents: write
370371

371372
steps:
372373
- name: Download zip package
@@ -394,6 +395,7 @@ jobs:
394395
path: package
395396

396397
- name: NuGet login (OIDC)
398+
if: ${{ fromJSON(needs.preflight.outputs.dry-run) == false }}
397399
id: nuget-login
398400
uses: NuGet/login@v1
399401
with:

0 commit comments

Comments
 (0)