Skip to content

Commit 698e067

Browse files
committedJul 18, 2024·
fix: rename token to get contributors
1 parent 3da72f9 commit 698e067

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎.github/workflows/pages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
npm i
4040
- name: Build
4141
env:
42-
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }}
4343
run: cargo make build
4444
- name: Upload artifact
4545
uses: actions/upload-artifact@v4

‎.github/workflows/pr-preview.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
npm i
7272
- name: Build
7373
env:
74-
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }}
7575
run: cargo make build
7676

7777
- name: Deploy

‎src/pages/contributors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub async fn fetch_contributors() -> Vec<Contributor> {
7171
headers.append("User-Agent", "RustLangES Automation Agent".parse().unwrap());
7272
headers.append(
7373
"Authorization",
74-
format!("Bearer {}", env!("GITHUB_API_TOKEN"))
74+
format!("Bearer {}", env!("COLLABORATORS_API_TOKEN"))
7575
.parse()
7676
.unwrap(),
7777
);

0 commit comments

Comments
 (0)
Please sign in to comment.