Skip to content

Commit 2925330

Browse files
committed
CQ: Avoid expanding secrets in a run block
1 parent 6f2aa48 commit 2925330

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/publish-nuget-Package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ jobs:
2828
run: dotnet pack --configuration=Release QueryDB/QueryDB.csproj
2929

3030
- name: Publish Nuget Package
31-
run: dotnet nuget push QueryDB/bin/Release/${{ env.NUGET_PACKAGE_NAME_VERSION }} -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
31+
env:
32+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
33+
run: dotnet nuget push QueryDB/bin/Release/${{ env.NUGET_PACKAGE_NAME_VERSION }} -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
3234

0 commit comments

Comments
 (0)