From 698e067db74074c76868a44295ec2011af2cf3e2 Mon Sep 17 00:00:00 2001 From: Sergio Ribera <56278796+SergioRibera@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:41:50 -0400 Subject: [PATCH] fix: rename token to get contributors --- .github/workflows/pages.yml | 2 +- .github/workflows/pr-preview.yml | 2 +- src/pages/contributors.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 72fd14c..ffae1a0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -39,7 +39,7 @@ jobs: npm i - name: Build env: - GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }} run: cargo make build - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 60ea5d6..3f78ad7 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -71,7 +71,7 @@ jobs: npm i - name: Build env: - GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COLLABORATORS_API_TOKEN: ${{ secrets.COLLABORATORS_API_TOKEN }} run: cargo make build - name: Deploy diff --git a/src/pages/contributors.rs b/src/pages/contributors.rs index 6843ef0..24df489 100644 --- a/src/pages/contributors.rs +++ b/src/pages/contributors.rs @@ -71,7 +71,7 @@ pub async fn fetch_contributors() -> Vec { headers.append("User-Agent", "RustLangES Automation Agent".parse().unwrap()); headers.append( "Authorization", - format!("Bearer {}", env!("GITHUB_API_TOKEN")) + format!("Bearer {}", env!("COLLABORATORS_API_TOKEN")) .parse() .unwrap(), );