Skip to content

Commit b3ecde1

Browse files
authored
Update action.yml
1 parent ea6c697 commit b3ecde1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ runs:
1919
}
2020
else {
2121
$packageId = "SecurityCodeScan.VS2019"
22-
$packageVersion = "5.0.0"
22+
$scs2019packages = Invoke-RestMethod -Uri "https://api-v2v3search-0.nuget.org/query?q=packageid:SecurityCodeScan.VS2019&top=true"
23+
$packageVersion = $scs2019packages.data.versions | Sort-Object -Property version -Descending | Select-Object -First 1
24+
$packageVersion = $packageVersion.version
25+
2326
$packages = $project | Split-Path -parent
2427
$packages = Join-Path $packages "packages.config"
2528

0 commit comments

Comments
 (0)