-
Notifications
You must be signed in to change notification settings - Fork 49
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
Security warnings on macOS #106
Comments
Thanks for the kind words. Hmm interesting. I've never seen a security warning when running ruff as part of pre-commit. Can you tell me more on how you run ruff? |
I created a small placebo repository to replicate my problem: https://github.com/jpn--/placebo I can check out this repo, run "pre-commit install" on it to activate the hooks, then when I try to commit a change to Python code in the repo, either using a GUI or even just I actually see the pop-up twice, I presume once for the After triggering this warning, if I go to > System Preferences > Privacy & Security, I can see this: If I click here on "Allow Anyway" and re-try the commit, it will work, but only until I update the version of ruff listed in the I am running macOS Sequoia Version 15.1.1 (24B91). |
Thanks for creating a repository! I'm currently on 15.1.1 macOS version and it seems to be running fine on my machine. Can you tell us how did you install pre-commit? Does it occur only when running Ruff via pre-commit or does invoking |
I have installed pre-commit (and ruff, for manual use) via homebrew. I just updated homebrew itself, and both ruff and pre-commit to the latest versions, which has not fixed my issue. I don't get the security warning message when I invoke the regular |
Do I understand this correctly that you manually run |
I definitely do not normally manually run |
Hi! Thanks for making ruff, it's a great tool. I also appreciate the regular development and updates, and I've configured a hook to automatically keep some of my repositories on the latest versions of ruff and related tools.
However, I've found that Apple's "Gatekeeper" security is getting more and more onerous, requiring me to re-authorize ruff on every repo, every time it gets an update. They recently took away the click one button way to do this, now I have to go dig in the system settings panels every time. Is there a way to use some kind of Astral-signed version of Ruff with pre-commit that won't give me all these security warnings? Or is this inconvenience just the price I pay to live in Apple's world?
The text was updated successfully, but these errors were encountered: