Skip to content

Commit

Permalink
Merge pull request #12066 from ethereum/unify-gh-tokens
Browse files Browse the repository at this point in the history
Unify GH tokens
  • Loading branch information
corwintines authored Jan 31, 2024
2 parents a33e216 + fcc8a94 commit 513c685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ We recommend setting this up when running the project locally, as we use the Git
```sh
# .env Example:
GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
```

2. Add Etherscan API token (free)
Expand Down
7 changes: 4 additions & 3 deletions src/lib/api/ghRepoData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ const frameworksList: Array<Framework> = [
githubUrl: "https://github.com/scaffold-eth/scaffold-eth-2",
background: "#ffffff",
name: "Scaffold-ETH-2",
description: "page-developers-local-environment:page-local-environment-scaffold-eth-desc",
description:
"page-developers-local-environment:page-local-environment-scaffold-eth-desc",
alt: "page-local-environment-scaffold-eth-logo-alt",
image: ScaffoldEthImage,
},
Expand Down Expand Up @@ -129,7 +130,7 @@ export const ghRepoData = async (githubUrl: string) => {
`https://api.github.com/repos/${repoOwner}/${repoName}`,
{
headers: {
Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`,
Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`,
},
}
)
Expand All @@ -144,7 +145,7 @@ export const ghRepoData = async (githubUrl: string) => {
`https://api.github.com/repos/${repoOwner}/${repoName}/languages`,
{
headers: {
Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`,
Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`,
},
}
)
Expand Down

0 comments on commit 513c685

Please sign in to comment.