-
-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why cannot GitHub PAT be used for AUR? #4735
Comments
It's because the AUR pipe pushes to https://aur.archlinux.org only, and the only way of auth there is private keys. FWIW you can create another private key just for your account there.
thank you! 🙏 |
Ah yeah, this makes sense. Thank you. But I am using I do not plan on pushing to "official" AUR. |
I think you could set the git_url to the the one of that repo, but yeah, it will not be as "clean" as brews for example 🤔 |
Sorry, I don't think I understand. Do you mean this? "In the |
I mean, you could do something like this: aurs:
- # ...
git_url: "git@github.com:bartekpacia/aur.git"
# ... |
I'm already doing this: https://github.com/bartekpacia/fhome/blob/40d11f11f2393cfc7139f2669ab36d8c4db819de/.goreleaser.yaml#L100. It requires me to specify an SSH key in I mean, if in |
yes, pat would not work, you'll need to set a private key as well Thinking more about it now, I think you might be able to workaround it with aur:
- # ...
# set a https url authing with the PAT
git_url: "https://{{ .Env.GH_PATH }}@github.com/bartekpacia/aur"
# path to a key generated at runtime, would not be used
private_key: ./foo
# by default this will use the private_key value, override so it doesn't
git_ssh_command: "ssh"
# ... PS: i havent tested this, but I think it might work |
Is your feature request related to a problem? Please describe.
Publishing formulas to a Homebrew tap requires a Personal Access Token.
However publishing to an AUR repo requires an SSH key.
Describe the solution you'd like
I'd like to not be forced to provide SSH key that can access my AUR repo. Instead I'd like to be able to use a Personal Access Token, just like with Homebrew taps.
If it's not possible, as a user I'd like to know what's the cause of this.
Describe alternatives you've considered
Search
Supporter
Code of Conduct
Additional context
huge thanks for creating and maintaining this tool!
The text was updated successfully, but these errors were encountered: