Skip to content

Commit

Permalink
Update build-codeql.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Ronstadt <147542405+jacob-ronstadt@users.noreply.github.com>
  • Loading branch information
jacob-ronstadt authored Nov 11, 2024
1 parent d11cd41 commit ae4d7b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ jobs:
fetch-depth: 0
- name: CodeQL Download
run:
Invoke-WebRequest -Uri "https://github.com/github/codeql-cli-binaries/releases/download/v$env:CODEQL_LATEST_VERSION/codeql-win64.zip" -OutFile codeql-win64.zip;
$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]
Invoke-WebRequest -Uri "https://github.com/github/codeql-cli-binaries/releases/download/"+$latest+"/codeql-win64.zip" -OutFile codeql-win64.zip;
Expand-Archive -Path codeql-win64.zip -DestinationPath .\codeql-zip -Force;
Move-Item -Path .\codeql-zip\codeql -Destination .\codeql-cli\
- name: Install CodeQL pack dependencies
Expand Down

0 comments on commit ae4d7b6

Please sign in to comment.