Skip to content

Commit

Permalink
specify exact graph sdk version and exclude http files when downloadi…
Browse files Browse the repository at this point in the history
…ng artifacts
  • Loading branch information
fey101 committed Apr 29, 2024
1 parent 9b51bab commit 8f75047
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pipelines/snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ stages:
- pwsh: |
Write-Host "Installing module ImportExcel"
Install-Module -Name ImportExcel -Scope CurrentUser -Force -AllowClobber
Write-Host "Installing module Microsoft.Graph"
Install-Module Microsoft.Graph -Repository PSGallery -Scope CurrentUser -AcceptLicense -Force -AllowClobber
Write-Host "Installing module Microsoft.Graph v1.7.0"
Install-Module Microsoft.Graph -RequiredVersion 1.7.0 -Repository PSGallery -Scope CurrentUser -AcceptLicense -Force -AllowClobber
Write-Host "Finished installing dependencies"
displayName: Install script dependencies
workingDirectory: '$(Build.SourcesDirectory)'
Expand Down
2 changes: 1 addition & 1 deletion scripts/categorizeErrors.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $pathNotFound = @()
$invalidStart = @()
$other = @()

$files = Get-ChildItem -Path $trxFolderPath -Filter *.trx
$files = Get-ChildItem -Path $trxFolderPath -Exclude "http*"
$SpecificErrorPattern = "/home/vsts/work/1/a/Snippets/"
foreach ($trxFilePath in $files){
Write-Host "Processing file $trxFilePath"
Expand Down
4 changes: 2 additions & 2 deletions scripts/getWorkloadOwner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Function Connect-Tenant
[Bool]$IsEducation = $false
)
$appToken = Get-DefaultAppApplicationToken -IsEducation $IsEducation
Connect-MgGraph -AccessToken ($appToken | ConvertTo-SecureString -AsPlainText -Force) | Out-Null
Connect-MgGraph -AccessToken $appToken | Out-Null
}

function Get-AppSettings ()
Expand Down Expand Up @@ -95,7 +95,7 @@ function Get-WorkloadOwner {
if ($Endpoint -contains "me/")
{
$userToken = Get-DelegatedAppToken
Connect-MgGraph -AccessToken ($userToken.access_token | ConvertTo-SecureString -AsPlainText -Force) | Out-Null
Connect-MgGraph -AccessToken $userToken.access_token | Out-Null
}
$ownerEndpoint = $Endpoint.contains("?") ? ($Endpoint + "&`$whatif"):($Endpoint + "?`$whatif")
$fullUrl = $IsFullUri ? $Uri : "https://graph.microsoft.com/$($GraphApiVersion)/$ownerEndpoint"
Expand Down

0 comments on commit 8f75047

Please sign in to comment.