Skip to content

Commit

Permalink
update: Fix github api authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji committed Oct 31, 2024
1 parent b1c5b09 commit ca81e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ fn query_tags(repo: &str, owner: &str) -> Result<IntermediaryTags, ()> {
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.");
}
Expand Down

0 comments on commit ca81e88

Please sign in to comment.