Skip to content

Commit 0738064

Browse files
committed
fix: remove audience parameter from OIDC token request
1 parent f59b518 commit 0738064

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ jobs:
4444

4545
- name: Publish packages to NuGet.org
4646
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
47-
env:
48-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4947
run: |
5048
# Request OIDC token for NuGet Trusted Publishing
51-
OIDC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | jq -r '.value')
49+
OIDC_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL" | jq -r '.value')
5250
5351
# Push package with OIDC token
5452
dotnet nuget push ./nupkg/*.nupkg \

0 commit comments

Comments
 (0)