Skip to content

Commit 513c685

Browse files
authored
Merge pull request #12066 from ethereum/unify-gh-tokens
Unify GH tokens
2 parents a33e216 + fcc8a94 commit 513c685

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/api-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We recommend setting this up when running the project locally, as we use the Git
1111
1212
```sh
1313
# .env Example:
14-
GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
14+
NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
1515
```
1616

1717
2. Add Etherscan API token (free)

src/lib/api/ghRepoData.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ const frameworksList: Array<Framework> = [
9393
githubUrl: "https://github.com/scaffold-eth/scaffold-eth-2",
9494
background: "#ffffff",
9595
name: "Scaffold-ETH-2",
96-
description: "page-developers-local-environment:page-local-environment-scaffold-eth-desc",
96+
description:
97+
"page-developers-local-environment:page-local-environment-scaffold-eth-desc",
9798
alt: "page-local-environment-scaffold-eth-logo-alt",
9899
image: ScaffoldEthImage,
99100
},
@@ -129,7 +130,7 @@ export const ghRepoData = async (githubUrl: string) => {
129130
`https://api.github.com/repos/${repoOwner}/${repoName}`,
130131
{
131132
headers: {
132-
Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`,
133+
Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`,
133134
},
134135
}
135136
)
@@ -144,7 +145,7 @@ export const ghRepoData = async (githubUrl: string) => {
144145
`https://api.github.com/repos/${repoOwner}/${repoName}/languages`,
145146
{
146147
headers: {
147-
Authorization: `Bearer ${process.env.GITHUB_TOKEN_READ_ONLY}`,
148+
Authorization: `Bearer ${process.env.NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY}`,
148149
},
149150
}
150151
)

0 commit comments

Comments
 (0)