-
-
Notifications
You must be signed in to change notification settings - Fork 51
executables_db: avoid Formula#all
#135
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
executables_db: avoid Formula#all
#135
Conversation
Instead, collect all formulae from their taps, then load them explicitly via `Formulary`. This should fix Homebrew#133.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Not stale. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Not stale. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the long delay here. Have watched this repo.
lib/executables_db.rb
Outdated
|
||
name = f.full_name | ||
Tap.each do |tap| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@woodruffw Probably want to limit this to official taps only without --eval-all
or just require --eval-all
or HOMEBREW_EVAL_ALL
to be passed to the relevant commands?
For context: the concern here is arbitrary Ruby execution from untrusted taps/formulae.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, good call -- I'll have some time to update here in the coming days 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@woodruffw Gentle nudge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the nudge, looking again today 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brew which-update
now takes --eval-all
, which is disabled by default (meaning that, by default, only CoreTap.instance
is used).
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Thanks again @woodruffw! |
Instead, collect all formulae from their taps, then load them explicitly via
Formulary
.This should fix #133.