Skip to content

Commit 1bbca96

Browse files
isourabhSourabh Tripathi
andauthored
fix auth issue when cloning home brew package (#157)
Co-authored-by: Sourabh Tripathi <sotripathi@microsoft.com>
1 parent 99b6b6b commit 1bbca96

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.pipelines/publish_release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,6 @@ extends:
173173
- stage: HomeBrew
174174
displayName: MacOS HomeBrew Deployment
175175
dependsOn: GitHub_Release_And_MSStore
176-
variables:
177-
- name: GitHubPAT
178-
value: $(GitHubPAT)
179176
jobs:
180177
- job: PreDeploymentApprovalJob
181178
displayName: Pre-Deployment Approval
@@ -195,8 +192,10 @@ extends:
195192
steps:
196193
- task: CmdLine@2
197194
displayName: Checkout HomeBrew Repo
195+
env:
196+
GITHUB_PAT: $(GitHubPAT)
198197
inputs:
199-
script: git clone https://oauth2:$(GitHubPAT)@github.com/microsoft/homebrew-msstore-cli.git $(Pipeline.Workspace)\homebrew-msstore-cli
198+
script: git clone https://oauth2:%GITHUB_PAT%@github.com/microsoft/homebrew-msstore-cli.git $(Pipeline.Workspace)\homebrew-msstore-cli
200199
- task: DownloadGitHubRelease@0
201200
displayName: Download GitHub Release
202201
inputs:

0 commit comments

Comments
 (0)