From 4301f50360d89462a02c0d2b0e8d739d155cf36f Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Thu, 30 Nov 2023 23:56:00 -0600 Subject: [PATCH] rename OAUTH_TOKEN to GITHUB_API_TOKEN This is the standard convention in asdf plugins: https://github.com/asdf-vm/asdf/blob/master/docs/plugins/create.md#api-rate-limiting --- bin/list-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/list-all b/bin/list-all index efe3e2f..1fa8420 100755 --- a/bin/list-all +++ b/bin/list-all @@ -2,8 +2,8 @@ releases_url="https://api.github.com/repos/koalaman/shellcheck/releases" -if [ -n "$OAUTH_TOKEN" ]; then - cmd="curl -s -H 'Authorization: token $OAUTH_TOKEN' $releases_url" +if [ -n "$GITHUB_API_TOKEN" ]; then + cmd="curl -s -H 'Authorization: token $GITHUB_API_TOKEN' $releases_url" else cmd="curl -s $releases_url" fi