From f1d1953409cfd26a6b63618eb7dfab46ed61c7a2 Mon Sep 17 00:00:00 2001 From: bedroesb Date: Tue, 30 Apr 2024 13:47:13 +0200 Subject: [PATCH] token --- .github/workflows/stats.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/stats.yml b/.github/workflows/stats.yml index e1caad46..31f0fe9e 100644 --- a/.github/workflows/stats.yml +++ b/.github/workflows/stats.yml @@ -6,13 +6,9 @@ on: # Run every Monday at 00:00 UTC - cron: '0 0 * * 1' - -permissions: write-all - jobs: update-stats: runs-on: ubuntu-latest - steps: - name: Checkout Repository uses: actions/checkout@v2 @@ -23,7 +19,7 @@ jobs: # Fetch GitHub stats using API curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.USER_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/ELIXIR-Belgium/elixir-toolkit-theme/traffic/clones > clones-stats.json cat clones-stats.json @@ -33,7 +29,7 @@ jobs: run: | curl -L \ -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.USER_TOKEN }}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/ELIXIR-Belgium/elixir-toolkit-theme/traffic/views > views-stats.json cat views-stats.json