File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,8 @@ jobs:
149149 fetch-depth : 0
150150 - name : CodeQL Download
151151 run :
152- Invoke-WebRequest -Uri "https://github.com/github/codeql-cli-binaries/releases/download/v$env:CODEQL_LATEST_VERSION/codeql-win64.zip" -OutFile codeql-win64.zip;
152+ $latest=(((Invoke-WebRequest -Uri https://github.com/github/codeql-cli-binaries/releases/latest).links.href | Where-Object{$_ -like "/github/codeql-cli-binaries/releases/tag/v*"}[0]) -split "/")[-1]
153+ Invoke-WebRequest -Uri "https://github.com/github/codeql-cli-binaries/releases/download/"+$latest+"/codeql-win64.zip" -OutFile codeql-win64.zip;
153154 Expand-Archive -Path codeql-win64.zip -DestinationPath .\codeql-zip -Force;
154155 Move-Item -Path .\codeql-zip\codeql -Destination .\codeql-cli\
155156 - name : Install CodeQL pack dependencies
You can’t perform that action at this time.
0 commit comments