{"id":20058364,"url":"https://github.com/buresdv/sudo-helper","last_synced_at":"2026-01-19T07:33:07.427Z","repository":{"id":242350976,"uuid":"809153950","full_name":"buresdv/Sudo-Helper","owner":"buresdv","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-02T12:13:38.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-20T14:56:43.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buresdv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-01T21:12:53.000Z","updated_at":"2025-08-27T04:40:56.000Z","dependencies_parsed_at":"2024-06-02T13:04:31.072Z","dependency_job_id":"04ebf939-95b6-4299-8b70-b4175b0e0bb4","html_url":"https://github.com/buresdv/Sudo-Helper","commit_stats":null,"previous_names":["buresdv/sudo-helper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/buresdv/Sudo-Helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buresdv%2FSudo-Helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buresdv%2FSudo-Helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buresdv%2FSudo-Helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buresdv%2FSudo-Helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buresdv","download_url":"https://codeload.github.com/buresdv/Sudo-Helper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buresdv%2FSudo-Helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T13:01:19.775Z","updated_at":"2026-01-19T07:33:07.406Z","avatar_url":"https://github.com/buresdv.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Alert preview](https://files.catbox.moe/30f8au.jpg)\n\n# Swift Askpass Helper\n\nThis project aims to create a native-looking input alert for ASKPASS operations on macOS.\n\n## Motivation\n\nI started this project to add support for sudo operation to [Cork](https://github.com/buresdv/Cork). I was not satisfied with the way dialogs shown by AppleScript looked, and wanted a more native implementation\n\n## Usage\n\nSet the `SUDO_ASKPASS` environment variable in your Swift shell executor to the path of the compiled executable. For example, this is how it is used in Cork:\n```swift\nlet task = Process()\n\n// (Other code)\n\nvar finalEnvironment: [String: String] = .init()\n\n// (Other code)\n\nlet sudoHelperURL: URL = Bundle.main.resourceURL!.appendingPathComponent(\"Sudo Helper\", conformingTo: .executable)\n    \nfinalEnvironment[\"SUDO_ASKPASS\"] = sudoHelperURL.path // \u003c-- HERE\n\n// (Other code)\n\ntask.environment = finalEnvironment\n```\n\n## Customization\n\nThis project only supports hardcoded strings. In order to change what the alert says, change these variables in the source code before compiling:\n```swift\nalert.window.title // Line 17\nalert.messageText // Line 18\nalert.informativeText // Line 19\n```\n\n## System Requirements\n\nThis project supports macOS 10.13 and later.\n\n## Technical Details\n\nThis project creates a `NSAlert` with a password input field. When the user submits the field, the program returns the submitted password to the caller of the `SUDO_ASKPASS` operation, and the app quits.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburesdv%2Fsudo-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburesdv%2Fsudo-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburesdv%2Fsudo-helper/lists"}