File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ pub async fn gh_codeql_download(codeql_version: &str) -> Result<String> {
2525 log:: debug!( "Running command: gh extensions install github/gh-codeql" ) ;
2626 let status = tokio:: process:: Command :: new ( "gh" )
2727 . args ( & [ "extensions" , "install" , "github/gh-codeql" ] )
28+ . env ( "GH_TOKEN" , std:: env:: var ( "GITHUB_TOKEN" ) . unwrap_or_default ( ) )
2829 . status ( )
2930 . await
3031 . context ( "Failed to execute `gh extensions install github/gh-codeql` command" ) ?;
@@ -45,6 +46,7 @@ pub async fn gh_codeql_download(codeql_version: &str) -> Result<String> {
4546 log:: debug!( "Running command: gh codeql set-version {codeql_version}" ) ;
4647 let status = tokio:: process:: Command :: new ( "gh" )
4748 . args ( & [ "codeql" , "set-version" , codeql_version] )
49+ . env ( "GH_TOKEN" , std:: env:: var ( "GITHUB_TOKEN" ) . unwrap_or_default ( ) )
4850 . status ( )
4951 . await
5052 . context ( "Failed to execute `gh codeql set-version` command" ) ?;
@@ -65,6 +67,7 @@ pub async fn gh_codeql_download(codeql_version: &str) -> Result<String> {
6567 log:: debug!( "Running command: gh codeql install-stub" ) ;
6668 let status = tokio:: process:: Command :: new ( "gh" )
6769 . args ( & [ "codeql" , "install-stub" ] )
70+ . env ( "GH_TOKEN" , std:: env:: var ( "GITHUB_TOKEN" ) . unwrap_or_default ( ) )
6871 . status ( )
6972 . await
7073 . context ( "Failed to execute `gh codeql install-stub` command" ) ?;
You can’t perform that action at this time.
0 commit comments