Skip to content

Commit ae4d7b6

Browse files
Update build-codeql.yaml
Signed-off-by: Jacob Ronstadt <[email protected]>
1 parent d11cd41 commit ae4d7b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-codeql.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)