Skip to main content

fetch_oidc_token

Function fetch_oidc_token 

Source
pub fn fetch_oidc_token(
    request_url: &str,
    request_token: &str,
    audience: &str,
    url_env_name: &str,
    timeout: Duration,
) -> Result<String>
Expand description

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.