Authentication for private formulae #3640
-
👋 Hi there. For internal company tooling I want to add a formula to an internal tap. The formula is head-only (for now), and needs to access a file that is behind basic auth. Passing the auth isn't an issue:
However, the question is: how can I get the username / password from the user? On the one hand, homebrew removes environment variables that contain passwords, so that doesn't seem to be the way. But if I make an interactive prompt, the user is asked for this multiple times during a single (Note that the environment variable cleaning mechanism is fairly naive and I could easily bypass it, but I'd prefer to see what the "proper" solution here would be.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Generally the goal for homebrew is supporting open source builds so this isn't an actively supported scenario. But environment variables prefixed with |
Beta Was this translation helpful? Give feedback.
Generally the goal for homebrew is supporting open source builds so this isn't an actively supported scenario. But environment variables prefixed with
HOMEBREW_
are allowed if you need them.