@@ -107,7 +107,7 @@ impl<Response: Clone + Debug> Cache<Response> {
107107}
108108
109109fn list_registered_runners ( ) -> eyre:: Result < Vec < ApiRunner > > {
110- let github_api_scope = & TOML . github_api_scope ;
110+ let github_api_scope = & TOML . github_api_scope_url ;
111111 let result = run_fun ! ( gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"
112112 "$github_api_scope/actions/runners" --paginate -q ".runners[]"
113113 | jq -s . ) ?;
@@ -126,7 +126,7 @@ pub fn list_registered_runners_for_host() -> eyre::Result<Vec<ApiRunner>> {
126126
127127pub fn register_runner ( runner_name : & str , label : & str , work_folder : & str ) -> eyre:: Result < String > {
128128 let github_api_suffix = & TOML . github_api_suffix ;
129- let github_api_scope = & TOML . github_api_scope ;
129+ let github_api_scope = & TOML . github_api_scope_url ;
130130 let result = run_fun ! ( gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"
131131 "$github_api_scope/actions/runners/generate-jitconfig"
132132 -f "name=$runner_name@$github_api_suffix" -F "runner_group_id=1" -f "work_folder=$work_folder"
@@ -136,7 +136,7 @@ pub fn register_runner(runner_name: &str, label: &str, work_folder: &str) -> eyr
136136}
137137
138138pub fn unregister_runner ( id : usize ) -> eyre:: Result < ( ) > {
139- let github_api_scope = & TOML . github_api_scope ;
139+ let github_api_scope = & TOML . github_api_scope_url ;
140140 run_cmd ! ( gh api --method DELETE -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"
141141 "$github_api_scope/actions/runners/$id" ) ?;
142142
@@ -149,7 +149,7 @@ pub fn reserve_runner(
149149 reserved_since : SystemTime ,
150150 reserved_by : & str ,
151151) -> eyre:: Result < ( ) > {
152- let github_api_scope = & TOML . github_api_scope ;
152+ let github_api_scope = & TOML . github_api_scope_url ;
153153 let reserved_since = reserved_since. duration_since ( UNIX_EPOCH ) ?. as_secs ( ) ;
154154 run_cmd ! ( gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"
155155 "$github_api_scope/actions/runners/$id/labels"
0 commit comments