Replies: 3 comments 1 reply
-
You are able to use an installation access token (e.g. via https://github.com/actions/create-github-app-token) and pass that to Homebrew: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation#authenticating-with-an-installation-access-token. Note however that GitHub apps are restricted to particular repositories they are installed to so you'll only be able to push to repositories where that GitHub app is installed to (including forks) and you can't open PRs to e.g. Homebrew repositories where the app isn't installed. That isn't Homebrew-specific, so the GitHub documentation will have more information on how the GitHub App security model differs to PATs. |
Beta Was this translation helpful? Give feedback.
-
Homebrew just uses the GitHub API underneath so it supports whatever GitHub supports. I believe whatever you set as |
Beta Was this translation helpful? Give feedback.
-
This has been finished in Homebrew/brew#18242. It works like https://github.com/Goooler/homebrew-repo/blob/4aa63902ae79448b75cb26f556281a6fc2eca06c/.github/workflows/autobump.yml#L17-L27. NOTE: permissions:
contents: write Doesn't work for me, I changed it to |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
We use PAT in pipeline for authentication to send an auto PR every time we release. Does Homebrew support one of these authentication methods? https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app#about-authentication-as-a-github-app
Relevant casks
Casks/d/devtunnel.rb
Beta Was this translation helpful? Give feedback.
All reactions