{"id":13504853,"url":"https://github.com/chef/ohai","last_synced_at":"2026-04-02T02:07:52.461Z","repository":{"id":482558,"uuid":"108289","full_name":"chef/ohai","owner":"chef","description":"Ohai profiles your system and emits JSON","archived":false,"fork":false,"pushed_at":"2026-03-27T05:37:45.000Z","size":9082,"stargazers_count":687,"open_issues_count":69,"forks_count":445,"subscribers_count":76,"default_branch":"main","last_synced_at":"2026-03-31T01:07:01.012Z","etag":null,"topics":["chef","configuration","configuration-management","discovery","hacktoberfest","ohai","ruby"],"latest_commit_sha":null,"homepage":"https://docs.chef.io/ohai.html","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2009-01-15T20:50:43.000Z","updated_at":"2026-03-28T12:05:30.000Z","dependencies_parsed_at":"2026-01-06T13:01:17.740Z","dependency_job_id":null,"html_url":"https://github.com/chef/ohai","commit_stats":{"total_commits":3589,"total_committers":359,"mean_commits":9.997214484679665,"dds":0.7879632209529117,"last_synced_commit":"da2d9cf610be7d0bb009314f60b9760da76c6364"},"previous_names":[],"tags_count":617,"template":false,"template_full_name":null,"purl":"pkg:github/chef/ohai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Fohai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Fohai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Fohai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Fohai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chef","download_url":"https://codeload.github.com/chef/ohai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Fohai/sbom","scorecard":{"id":45750,"data":{"date":"2025-08-11","repo":{"name":"github.com/chef/ohai","commit":"803a31355b91d60fdeb60ddbb3d4553df5a2022a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7.7,"checks":[{"name":"Maintained","score":10,"reason":"17 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":4,"reason":"Found 11/24 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/ci-main-pull-request-stub-trufflehog-only.yml:36","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci-main-pull-request-stub-trufflehog-only.yml:17","Info: topLevel 'contents' permission set to 'read': .github/workflows/exec.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/unit.yml:12","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-main-pull-request-stub-trufflehog-only.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/ci-main-pull-request-stub-trufflehog-only.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/exec.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/exec.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/exec.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/exec.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unit.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/unit.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/unit.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/chef/ohai/unit.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .expeditor/buildkite/artifact.habitat.test.sh:41","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/chef/.github/SECURITY.md:1","Info: Found linked content: github.com/chef/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/chef/.github/SECURITY.md:1","Info: Found text in security policy: github.com/chef/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (17) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T22:43:14.135Z","repository_id":482558,"created_at":"2025-08-14T22:43:14.135Z","updated_at":"2025-08-14T22:43:14.135Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31294398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:43:37.129Z","status":"online","status_checked_at":"2026-04-02T02:00:08.535Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chef","configuration","configuration-management","discovery","hacktoberfest","ohai","ruby"],"created_at":"2024-08-01T00:00:52.427Z","updated_at":"2026-04-02T02:07:52.448Z","avatar_url":"https://github.com/chef.png","language":"Ruby","readme":"# ohai\n\n[![Build status](https://badge.buildkite.com/aa0b961fc3e5bed315c7035c6d60a4aaee57af9610cbde9a15.svg?branch=main)](https://buildkite.com/chef-oss/chef-ohai-main-verify) [![Gem Version](https://badge.fury.io/rb/ohai.svg)](https://badge.fury.io/rb/ohai)\n\n## Description\n\nOhai detects data about your operating system. It can be used standalone, but its primary purpose is to provide node data to Chef.\n\nOhai will print out a JSON data blob for all the known data about your system. When used with Chef, that data is reported back via node attributes.\n\nChef distributes Ohai as a RubyGem. This README is for developers who want to modify the Ohai source code. For users who want to write plugins for Ohai, see the documentation:\n\n- General documentation: \u003chttps://docs.chef.io/ohai/\u003e\n- Writing Ohai Plugins documentation: \u003chttps://docs.chef.io/ohai_custom/\u003e\n\n## Development Environment\n\nOhai's development dependencies should be installed with bundler. Just run `bundle install` in the root of the repo.\n\n## Spec Testing\n\nWe use RSpec for unit/spec tests. To run the full suite, run:\n\n```\nbundle exec rake spec\n```\n\nYou can run individual test files by running the rspec executable:\n\n```\nbundle exec rspec spec/unit/FILE.rb\n```\n\n## Style\n\nWe use [Cookstyle](https://github.com/chef/cookstyle), as a code [linter](https://en.wikipedia.org/wiki/Lint_(software)), to enforce style guidelines. To run:\n\n```\nbundle exec rake style\n```\n\nYou can run and automatically correct the issues:\n\n```\nbundle exec rake style:auto_correct\n```\n\n## Rake Tasks\n\nOhai has some Rake tasks for doing various things.\n\n```\nbundle exec rake -T\nrake build               # Build ohai-$VERSION.gem into the pkg directory\nrake clean               # Remove any temporary products\nrake clobber             # Remove any generated files\nrake install             # Build and install ohai-$VERSION.gem into system gems\nrake install:local       # Build and install ohai-$VERSION.gem into system gems without network access\nrake release[remote]     # Create tag $VERSION and build and push ohai-$VERSION.gem to rubygems.org\nrake spec                # Run RSpec code examples\nrake style               # Run Chefstyle tests\nrake style:auto_correct  # Auto-correct RuboCop offenses\n\n($VERSION is the current version, from the GemSpec in Rakefile)\n```\n\n## Links\n\nSource:\n\n- \u003chttps://github.com/chef/ohai/tree/main\u003e\n\nIssues:\n\n- \u003chttps://github.com/chef/ohai/issues\u003e\n\n## Contributing\n\nFor information on contributing to this project see \u003chttps://github.com/chef/chef/blob/main/CONTRIBUTING.md\u003e\n\n1. Fork it\n1. Create your feature branch (git checkout -b my-new-feature)\n1. Commit your changes (git commit -am 'Add some feature' --signoff)\n1. Run the tests `bundle exec rake spec`\n1. Run the style tests `bundle exec rake style`\n1. Push to the branch (git push origin my-new-feature)\n1. Create new Pull Request\n\n## Auto-merge and required checks\n\nThis repository has GitHub auto-merge enabled. To help your PR merge quickly:\n\n- Keep your branch up to date. GitHub may prompt you to update your PR branch; please do so to keep checks current.\n- All checks must be green before auto-merge can complete. A workflow named `allchecks` verifies that every configured workflow has passed.\n- Buildkite must be green. A required Buildkite check blocks merging if it is not successful.\n- DCO is required. Ensure commits are signed off (use `--signoff`).\n\n## License\n\nOhai - system information application\n\n- Author:: Adam Jacob ([adam@chef.io](mailto:adam@chef.io))\n- License:: Apache License, Version 2.0\n\n```text\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n# Copyright\nSee [COPYRIGHT.md](./COPYRIGHT.md).\n","funding_links":[],"categories":["Ruby"],"sub_categories":["Misc"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef%2Fohai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchef%2Fohai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef%2Fohai/lists"}