From 364bab20dbe57b381d29f1b796b8c4f512db5d02 Mon Sep 17 00:00:00 2001 From: ibo <41344259+sneazy-ibo@users.noreply.github.com> Date: Sat, 6 Jul 2024 20:43:40 +0200 Subject: [PATCH] feat: removed github token --- .github/workflows/beta.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 7d5ecf7d..02b11932 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -134,8 +134,7 @@ jobs: # Prepare Discord embed fetch_user_details() { local login=$1 - user_details=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/users/$login") + user_details=$(curl -s "https://api.github.com/users/$login") name=$(echo "$user_details" | jq -r '.name // .login') login=$(echo "$user_details" | jq -r '.login') avatar_url=$(echo "$user_details" | jq -r '.avatar_url') @@ -168,8 +167,7 @@ jobs: echo "Debug: Fetching contributors from GitHub" # Fetch contributors from GitHub - contributors=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/contributors") + contributors=$(curl -s "https://api.github.com/repos/${{ github.repository }}/contributors") echo "Debug: Contributors response:" echo "$contributors"