Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JarLob authored Feb 14, 2021
1 parent ea6c697 commit b3ecde1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ runs:
}
else {
$packageId = "SecurityCodeScan.VS2019"
$packageVersion = "5.0.0"
$scs2019packages = Invoke-RestMethod -Uri "https://api-v2v3search-0.nuget.org/query?q=packageid:SecurityCodeScan.VS2019&top=true"
$packageVersion = $scs2019packages.data.versions | Sort-Object -Property version -Descending | Select-Object -First 1
$packageVersion = $packageVersion.version
$packages = $project | Split-Path -parent
$packages = Join-Path $packages "packages.config"
Expand Down

0 comments on commit b3ecde1

Please sign in to comment.