pub fn fetch_oidc_token(
request_url: &str,
request_token: &str,
audience: &str,
url_env_name: &str,
timeout: Duration,
) -> Result<String>Expand description
Run one future to completion on a fresh current-thread runtime, so the
blocking command handlers can call async clients.
Request a GitHub Actions OIDC JWT from request_url for audience, using
bearer request_token, without exposing the token or URL query string in
any error message.
ยงErrors
Returns an error when the HTTP client cannot be built, the request fails,
or the JSON body contains no value token field.