Skip to content

Commit

Permalink
--host not host
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Feb 21, 2024
1 parent 84c7280 commit 6272f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::build_http_client;
#[tracing::instrument(skip_all, fields(audience = tracing::field::Empty))]
pub(crate) async fn get_actions_id_bearer_token(host: &url::Url) -> color_eyre::Result<String> {
let span = tracing::Span::current();
let audience = host.host_str().ok_or_else(|| eyre!("`host` must contain a valid host (eg `https://api.flakehub.com` contains `api.flakehub.com`)"))?;
let audience = host.host_str().ok_or_else(|| eyre!("`--host` must contain a valid host (eg `https://api.flakehub.com` contains `api.flakehub.com`)"))?;
span.record("audience", audience);

let actions_id_token_request_token = std::env::var("ACTIONS_ID_TOKEN_REQUEST_TOKEN")
Expand Down

0 comments on commit 6272f74

Please sign in to comment.