File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- use anyhow:: { Result , Context } ;
1+ use anyhow:: { Context , Result } ;
22use ghastoolkit:: CodeQL ;
33
44/// Download the CodeQL CLI using the GitHub CLI
5- pub async fn gh_codeql_download ( codeql_version : & str ) -> Result < String > {
6-
5+ pub async fn gh_codeql_download ( codeql_version : & str ) -> Result < String > {
76 log:: info!( "Downloading CodeQL Extension for GitHub CLI..." ) ;
87 tokio:: process:: Command :: new ( "gh" )
98 . args ( & [ "extensions" , "install" , "github/gh-codeql" ] )
@@ -34,4 +33,4 @@ pub async fn gh_codeql_download(codeql_version: &str)-> Result<String> {
3433 }
3534
3635 Ok ( "/usr/local/bin/codeql" . to_string ( ) )
37- }
36+ }
Original file line number Diff line number Diff line change @@ -49,9 +49,10 @@ async fn main() -> Result<()> {
4949 log:: warn!( "Failed to install CodeQL: {error:?}" ) ;
5050 log:: info!( "Attempting to install CodeQL using GitHub CLI..." ) ;
5151
52- let location = gh_codeql_download ( codeql_version) . await
52+ let location = gh_codeql_download ( codeql_version)
53+ . await
5354 . context ( "Failed to download CodeQL using GitHub CLI" ) ?;
54-
55+
5556 codeql = CodeQL :: init ( )
5657 . path ( location)
5758 . build ( )
You can’t perform that action at this time.
0 commit comments