From bc6b324e45947c872ef56ba2c3899811ec002b01 Mon Sep 17 00:00:00 2001 From: DMG Date: Fri, 27 Dec 2024 17:22:51 -0800 Subject: [PATCH] Experiment: brew.yaml --- .github/workflows/brew.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/brew.yaml b/.github/workflows/brew.yaml index a398f623..2f78ee14 100644 --- a/.github/workflows/brew.yaml +++ b/.github/workflows/brew.yaml @@ -78,12 +78,11 @@ jobs: export CC echo "CXX is $CXX; CC is $CC" - # Note - if you get the GitHub error: - # GitHub API Error: API rate limit exceeded for aa.bb.cc.dd... - # Then try rerunning the job in 20-25 minutes - - # This is an empty/public access token used to avoid github API rate - # limit warnings + # This is a fine-grained personal access token restricted to a + # single repository and with all permissions left on "No + # Access". We set this token to avoid being blocked by the + # GitHub access rate limit for unauthenticated access + # (i.e. the rate limit for access with no token). export HOMEBREW_GITHUB_API_TOKEN=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 homebrew/runformula.sh --skipaudit --force --HEAD @@ -91,6 +90,7 @@ jobs: # --force Run even if pistache brew formula unchanged # --HEAD Test with head of pistacheio/pistache master branch + # We unset the token again, otherwise audit will object to it unset HOMEBREW_GITHUB_API_TOKEN homebrew/runformula.sh --auditonly --force --HEAD