{"id":17202587,"url":"https://github.com/groob/osquery-condition","last_synced_at":"2025-07-17T06:35:38.963Z","repository":{"id":70183011,"uuid":"94941829","full_name":"groob/osquery-condition","owner":"groob","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-27T14:54:42.000Z","size":5,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T21:11:44.514Z","etag":null,"topics":["golang","macadmins","munki","osquery"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/groob.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,"zenodo":null}},"created_at":"2017-06-20T22:56:28.000Z","updated_at":"2023-08-31T08:54:26.000Z","dependencies_parsed_at":"2023-02-21T19:30:29.439Z","dependency_job_id":null,"html_url":"https://github.com/groob/osquery-condition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/groob/osquery-condition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groob%2Fosquery-condition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groob%2Fosquery-condition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groob%2Fosquery-condition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groob%2Fosquery-condition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groob","download_url":"https://codeload.github.com/groob/osquery-condition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groob%2Fosquery-condition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265573640,"owners_count":23790478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang","macadmins","munki","osquery"],"created_at":"2024-10-15T02:15:03.175Z","updated_at":"2025-07-17T06:35:38.950Z","avatar_url":"https://github.com/groob.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Use `osqueryd` to update the Munki `ConditionalItems.plist`. \nYou can run the binary as a munki preflight script.\nThis utility assumes osquery is already running in your environment. \n\n# Usage\n\n```\nUsage of ./osquery-condition:\n  -queries string\n    \tpath to line delimited query file\n  -socket string\n    \tpath to osqueryd socket (default \"/var/osquery/osquery.em\")\n```\n\nExample: \n\n```\nsudo ./osquery-condition -queries ./sample_queries\nsudo cat '/Library/Managed Installs/ConditionalItems.plist'\n```\n\n# Creating queries\n\nTo create queries for osqueryd to run, write them in a text file, *one line per query*.\nYour queries are expected to return key/value pairs as results. \nFor example, `select * from system_info;` would return a list of key/values. When updating the `ConditionalItems.plist` file, all the keys will be prefixed with `osquery_`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroob%2Fosquery-condition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroob%2Fosquery-condition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroob%2Fosquery-condition/lists"}