Skip to content

Commit

Permalink
save api key
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Mar 3, 2023
1 parent 4496eb8 commit e15a42a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ol/genesis-tools/src/wizard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ impl GenesisWizard {
}
}

let api_token = std::fs::read_to_string(&gh_token_path)?;
self.github_token = std::fs::read_to_string(&gh_token_path)?;

let gh_client = diem_github_client::Client::new(
self.repo_owner.clone(),
self.repo_name.clone(),
"master".to_string(),
api_token.clone(),
self.github_token.clone(),
);

// Use the github token to find out who is the user behind it.
Expand All @@ -186,7 +186,7 @@ impl GenesisWizard {
self.github_username.clone(),
self.repo_name.clone(),
"master".to_string(),
api_token,
self.github_token.clone(),
);

if user_gh_client.get_branches().is_err() {
Expand Down

0 comments on commit e15a42a

Please sign in to comment.