{"id":16940580,"url":"https://github.com/bradenhilton/mozillainstallhash","last_synced_at":"2025-10-08T19:00:03.282Z","repository":{"id":49043995,"uuid":"379735935","full_name":"bradenhilton/mozillainstallhash","owner":"bradenhilton","description":"Go package which generates the hash used to differentiate between installs of Mozilla software","archived":false,"fork":false,"pushed_at":"2023-03-24T17:46:04.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-24T11:56:23.572Z","etag":null,"topics":["cityhash","firefox","go","golang","hash","mozilla","thunderbird"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bradenhilton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-23T21:43:47.000Z","updated_at":"2025-03-26T10:29:19.000Z","dependencies_parsed_at":"2024-06-19T19:03:18.692Z","dependency_job_id":"69cf71bf-9f10-4b5b-a0a0-d544008d7dbb","html_url":"https://github.com/bradenhilton/mozillainstallhash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bradenhilton/mozillainstallhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenhilton%2Fmozillainstallhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenhilton%2Fmozillainstallhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenhilton%2Fmozillainstallhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenhilton%2Fmozillainstallhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradenhilton","download_url":"https://codeload.github.com/bradenhilton/mozillainstallhash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradenhilton%2Fmozillainstallhash/sbom","scorecard":{"id":250199,"data":{"date":"2025-08-11","repo":{"name":"github.com/bradenhilton/mozillainstallhash","commit":"146ee6c615b357e7be2f1a1259e4184c8b06b03e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":1,"reason":"Found 1/9 approved changesets -- score normalized to 1","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 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"}},{"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"}}]},"last_synced_at":"2025-08-17T08:17:34.312Z","repository_id":49043995,"created_at":"2025-08-17T08:17:34.312Z","updated_at":"2025-08-17T08:17:34.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000516,"owners_count":26082785,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["cityhash","firefox","go","golang","hash","mozilla","thunderbird"],"created_at":"2024-10-13T21:07:26.154Z","updated_at":"2025-10-08T19:00:03.242Z","avatar_url":"https://github.com/bradenhilton.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mozillainstallhash\n\nGets the hash used to differentiate between installs of Mozilla software in `installs.ini` and `profiles.ini`.\n\n### Example\n\n1. Create a new local Go module:\n   1. Create a new directory e.g. `$GOPATH/src/get_mozilla_install_hash`\n   2. Change into the newly created directory\n   3. Run `go mod init get_mozilla_install_hash`\n2. Create a new file `get_mozilla_install_hash.go`:\n\n\t```go\n\tpackage main\n\n\timport (\n\t\t\"fmt\"\n\t\t\"log\"\n\t\t\"os\"\n\t\t\"strings\"\n\n\t\t\"github.com/bradenhilton/mozillainstallhash\"\n\t)\n\n\tconst usage = `\n\tget_mozilla_install_hash\n\t\tGet the hash used to differentiate between installs of Mozilla software.\n\n\tUsage:\n\t\tget_mozilla_install_hash \u003cpath\u003e [\u003cpath\u003e ...]\n\n\tWhere \u003cpath\u003e is a string describing the parent directory of the executable,\n\te.g. \"C:\\Program Files\\Mozilla Firefox\", with platform specific path separators\n\t(\"\\\" on Windows and \"/\" on Unix-like systems)\n\n\tExample:\n\t\tget_mozilla_install_hash \"C:\\Program Files\\Mozilla Firefox\"\n\t\t308046B0AF4A39CB\n\n\t\tget_mozilla_install_hash \"C:/Program Files/Mozilla Firefox\"\n\t\t9D561FCD08DC6D55\n\n\t\tget_mozilla_install_hash \"/usr/lib/firefox\"\n\t\t4F96D1932A9F858E`\n\n\tfunc main() {\n\t\tif len(os.Args) == 1 {\n\t\t\tlog.Println(fmt.Errorf(\"error: no path specified\"))\n\t\t\tfmt.Println(usage)\n\t\t\tos.Exit(1)\n\t\t}\n\n\t\tpaths := os.Args[1:]\n\t\tfor _, path := range paths {\n\t\t\tpath = strings.TrimSuffix(path, \"/\")\n\t\t\tpath = strings.TrimSuffix(path, \"\\\\\")\n\n\t\t\thash, err := mozillainstallhash.MozillaInstallHash(path)\n\t\t\tif err != nil {\n\t\t\t\tlog.Println(err)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\tfmt.Println(hash)\n\t\t}\n\t}\n\t```\n\n3. Run `go get github.com/bradenhilton/mozillainstallhash`\n4. Run `go run get_mozilla_install_hash.go \u003cyour_path_here\u003e`\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradenhilton%2Fmozillainstallhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradenhilton%2Fmozillainstallhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradenhilton%2Fmozillainstallhash/lists"}