diff --git a/src/api.rs b/src/api.rs index fe2bb0a..972a571 100644 --- a/src/api.rs +++ b/src/api.rs @@ -94,8 +94,7 @@ fn query_tags(repo: &str, owner: &str) -> Result { tracing::debug!("Found github token."); headers.insert( AUTHORIZATION, - HeaderValue::from_str(&token).unwrap(), - // HeaderValue::from_str(&token).unwrap(), + HeaderValue::from_str(&format!("Bearer {token}")).unwrap(), ); tracing::debug!("Settings github token."); }