{"id":13414010,"url":"https://github.com/rinchsan/device-check-go","last_synced_at":"2026-01-16T22:51:47.523Z","repository":{"id":42048830,"uuid":"180794530","full_name":"rinchsan/device-check-go","owner":"rinchsan","description":":iphone: iOS DeviceCheck SDK for Go - query and modify the per-device bits","archived":false,"fork":false,"pushed_at":"2025-11-15T01:06:19.000Z","size":114,"stargazers_count":24,"open_issues_count":14,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-15T03:17:52.278Z","etag":null,"topics":[],"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/rinchsan.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-04-11T13:09:11.000Z","updated_at":"2024-11-06T11:54:53.000Z","dependencies_parsed_at":"2023-12-12T19:42:14.718Z","dependency_job_id":"325a989b-3e61-496c-bbad-0a2735b748d1","html_url":"https://github.com/rinchsan/device-check-go","commit_stats":null,"previous_names":["snowman-mh/device-check-go"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/rinchsan/device-check-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fdevice-check-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fdevice-check-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fdevice-check-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fdevice-check-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinchsan","download_url":"https://codeload.github.com/rinchsan/device-check-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fdevice-check-go/sbom","scorecard":{"id":776718,"data":{"date":"2025-08-11","repo":{"name":"github.com/rinchsan/device-check-go","commit":"57eb89b7b335243b3857814bfddabe22be0d04b3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":2,"reason":"Found 1/5 approved changesets -- score normalized to 2","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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/draft.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml:1","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":"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/draft.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/draft.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/device-check-go/test.yaml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction 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":"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":"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: 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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-2409 / GHSA-6294-6rgp-fr7r / GHSA-mhpq-9638-x6pw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-23T03:49:28.256Z","repository_id":42048830,"created_at":"2025-08-23T03:49:28.256Z","updated_at":"2025-08-23T03:49:28.256Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28486642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:47:06.728Z","status":"ssl_error","status_checked_at":"2026-01-16T22:46:52.401Z","response_time":107,"last_error":"SSL_read: 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-07-30T20:01:55.115Z","updated_at":"2026-01-16T22:51:47.504Z","avatar_url":"https://github.com/rinchsan.png","language":"Go","funding_links":[],"categories":["Third-party APIs","第三方api","Utility"],"sub_categories":["Utility/Miscellaneous","实用程序/Miscellaneous","Fail injection","HTTP Clients"],"readme":"# device-check-go\n\n![](https://github.com/rinchsan/device-check-go/workflows/CI/badge.svg)\n![](https://img.shields.io/github/release/rinchsan/device-check-go.svg?colorB=7E7E7E)\n[![](https://pkg.go.dev/badge/github.com/rinchsan/device-check-go.svg)](https://pkg.go.dev/github.com/rinchsan/device-check-go)\n[![](https://codecov.io/github/rinchsan/device-check-go/coverage.svg?branch=main)](https://codecov.io/github/rinchsan/device-check-go?branch=main)\n[![](https://goreportcard.com/badge/github.com/rinchsan/device-check-go)](https://goreportcard.com/report/github.com/rinchsan/device-check-go)\n[![](https://awesome.re/mentioned-badge.svg)](https://awesome-go.com/#third-party-apis)\n[![](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)\n\n:iphone: iOS DeviceCheck SDK for Go - query and modify the per-device bits\n\n## Installation\n\n```bash\ngo get github.com/rinchsan/device-check-go/v2\n```\n\n## Getting started\n\n### Initialize SDK\n\n```go\nimport \"github.com/rinchsan/device-check-go/v2\"\n\ncred := devicecheck.NewCredentialFile(\"/path/to/private/key/file\") // You can create credential also from raw string/bytes\ncfg := devicecheck.NewConfig(\"ISSUER\", \"KEY_ID\", devicecheck.Development)\nclient := devicecheck.New(cred, cfg)\n````\n\n### Use DeviceCheck API\n\n#### Query two bits\n\n```go\nvar result devicecheck.QueryTwoBitsResult\nif err := client.QueryTwoBits(\"DEVICE_TOKEN\", \u0026result); err != nil {\n\tswitch {\n\t// Note that QueryTwoBits returns ErrBitStateNotFound error if no bits found\n\tcase errors.Is(err, devicecheck.ErrBitStateNotFound):\n\t\t// handle ErrBitStateNotFound error\n\tdefault:\n\t\t// handle other errors\n\t}\n}\n```\n\n#### Update two bits\n\n```go\nif err := client.UpdateTwoBits(\"DEVICE_TOKEN\", true, true); err != nil {\n\t// handle errors\n}\n```\n\n#### Validate device token\n\n```go\nif err := client.ValidateDeviceToken(\"DEVICE_TOKEN\"); err != nil {\n\t// handle errors\n}\n```\n\n## Apple documentation\n\n- [iOS DeviceCheck API for Swift](https://developer.apple.com/documentation/devicecheck)\n- [HTTP commands to query and modify the per-device bits](https://developer.apple.com/documentation/devicecheck/accessing_and_modifying_per-device_data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinchsan%2Fdevice-check-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinchsan%2Fdevice-check-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinchsan%2Fdevice-check-go/lists"}