Skip to content

Commit 9b96617

Browse files
committed
security: fix #611 switches to input
Signed-off-by: Vincent Biret <[email protected]>
1 parent 70c83d4 commit 9b96617

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,24 @@ extends:
192192
dependsOn: build
193193
jobs:
194194
- deployment: deploy
195+
templateContext:
196+
type: releaseJob
197+
isProduction: true
198+
inputs:
199+
- input: pipelineArtifact
200+
artifactName: Nugets
201+
targetPath: '$(Pipeline.Workspace)'
195202
environment: nuget-org
196203
strategy:
197204
runOnce:
198205
deploy:
199206
pool:
200207
vmImage: ubuntu-latest
201208
steps:
202-
- task: DownloadPipelineArtifact@2
203-
displayName: Download nupkg from artifacts
204-
inputs:
205-
artifact: Nugets
206-
source: current
207209
- task: 1ES.PublishNuget@1
208210
displayName: 'NuGet push'
209211
inputs:
210-
packagesToPush: '$(Pipeline.Workspace)/Nugets/Microsoft.OpenApi.OData.*.nupkg'
212+
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.OData.*.nupkg'
211213
nuGetFeedType: external
212214
publishFeedCredentials: 'OpenAPI Nuget Connection'
213215
packageParentPath: '$(Pipeline.Workspace)'

0 commit comments

Comments
 (0)