Skip to content

Commit 4fa0f13

Browse files
committed
changing working directory
1 parent 09b1e1c commit 4fa0f13

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

check-vulnerabilities.ps1

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
$projectPath = ".\src\Azure.Functions.Cli"
21
$projectFileName = ".\Azure.Functions.Cli.csproj"
32
$logFilePath = "..\..\build.log"
43
$skipCveFilePath = "..\..\skipPackagesCve.json"
5-
if (-not (Test-Path $projectPath))
6-
{
7-
throw "Project path '$projectPath' does not exist."
8-
}
94

10-
cd $projectPath
115

126
$cmd = "restore"
137
Write-Host "dotnet $cmd"
@@ -62,6 +56,4 @@ $logFileExists = Test-Path $logFilePath -PathType Leaf
6256
if ($logFileExists)
6357
{
6458
Remove-Item $logFilePath
65-
}
66-
67-
cd ../..
59+
}

eng/ci/templates/public/jobs/build-test-public.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ jobs:
4343
- pwsh: |
4444
.\validateWorkerVersions.ps1
4545
displayName: 'Validate worker versions'
46-
- pwsh: |
47-
.\check-vulnerabilities.ps1
48-
displayName: "Check for security vulnerabilities"
49-
condition: ne(variables['skipWorkerVersionValidation'], 'true')
46+
- task: PowerShell@2
47+
displayName: "Run Check Vulnerabilities Script"
48+
inputs:
49+
filePath: './checkVulnerabilities.ps1'
50+
workingDirectory: './src/Azure.Functions.Cli'
5051
- pwsh: |
5152
.\build.ps1
5253
env:

0 commit comments

Comments
 (0)