workflows: use PAT instead of default GITHUB_TOKEN

Should prevent errors like:

Error: [{"type"=>"FORBIDDEN", "path"=>["repository", "pullRequest", "reviews", "nodes", 0, "author", "email"], "extensions"=>{"saml_failure"=>false}, "locations"=>[{"line"=>6, "column"=>27}], "message"=>"Resource not accessible by integration"}]

https://github.com/Homebrew/homebrew-core/runs/826063506?check_suite_focus=true#step:7:20
master
Jonathan Chang 2020-07-01 21:16:15 +10:00
parent 888c965b49
commit f600359110
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ jobs:
uses: Homebrew/actions/git-user-config@master uses: Homebrew/actions/git-user-config@master
- name: Pull bottles - name: Pull bottles
env: env:
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}} HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
HOMEBREW_BINTRAY_USER: brewtestbot HOMEBREW_BINTRAY_USER: brewtestbot
HOMEBREW_BINTRAY_KEY: ${{secrets.HOMEBREW_BINTRAY_KEY}} HOMEBREW_BINTRAY_KEY: ${{secrets.HOMEBREW_BINTRAY_KEY}}
run: | run: |