Skip to content

Commit

Permalink
Merge pull request #200 from a-kenji/fix-authorization
Browse files Browse the repository at this point in the history
update: Fix github api authorization
  • Loading branch information
a-kenji authored Oct 31, 2024
2 parents f925ae0 + ca81e88 commit 019cfa1
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 019cfa1

Please sign in to comment.