{"id":13822465,"url":"https://github.com/softprops/hubcaps","last_synced_at":"2025-10-24T20:51:16.838Z","repository":{"id":1222484,"uuid":"41617758","full_name":"softprops/hubcaps","owner":"softprops","description":"a rust interface for github","archived":false,"fork":false,"pushed_at":"2023-05-20T23:08:12.000Z","size":6215,"stargazers_count":287,"open_issues_count":28,"forks_count":68,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-18T02:12:14.988Z","etag":null,"topics":["github-api","library","rust-interface"],"latest_commit_sha":null,"homepage":"http://docs.rs/hubcaps","language":"Rust","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/softprops.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-08-30T05:26:49.000Z","updated_at":"2025-10-17T09:31:25.000Z","dependencies_parsed_at":"2023-07-05T17:15:44.960Z","dependency_job_id":null,"html_url":"https://github.com/softprops/hubcaps","commit_stats":{"total_commits":660,"total_committers":41,"mean_commits":"16.097560975609756","dds":0.2924242424242425,"last_synced_commit":"d60d157b6638760fc725b2e4e4f329a4ec6b901e"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/softprops/hubcaps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fhubcaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fhubcaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fhubcaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fhubcaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/hubcaps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Fhubcaps/sbom","scorecard":{"id":836160,"data":{"date":"2025-08-11","repo":{"name":"github.com/softprops/hubcaps","commit":"d60d157b6638760fc725b2e4e4f329a4ec6b901e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"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":"Code-Review","score":8,"reason":"Found 12/14 approved changesets -- score normalized to 8","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml: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":"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":"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/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/softprops/hubcaps/main.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 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":"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":"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":"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":"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":"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":"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 28 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-23T19:06:58.345Z","repository_id":1222484,"created_at":"2025-08-23T19:06:58.345Z","updated_at":"2025-08-23T19:06:58.345Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280865097,"owners_count":26404443,"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-24T02:00:06.418Z","response_time":73,"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":["github-api","library","rust-interface"],"created_at":"2024-08-04T08:02:01.284Z","updated_at":"2025-10-24T20:51:16.821Z","avatar_url":"https://github.com/softprops.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"\n\n\u003ch1 align=\"center\"\u003e\n  hubcaps\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n   a Rust interface for GitHub\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca alt=\"GitHub Actions\" href=\"https://github.com/softprops/hubcaps/actions\"\u003e\n    \u003cimg src=\"https://github.com/softprops/hubcaps/workflows/Main/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"crates.io\" href=\"https://crates.io/crates/hubcaps\"\u003e\n    \u003cimg src=\"https://img.shields.io/crates/v/hubcaps.svg?logo=rust\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"docs.rs\" href=\"http://docs.rs/hubcaps\"\u003e\n    \u003cimg src=\"https://docs.rs/hubcaps/badge.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"latest docs\" href=\"https://softprops.github.io/hubcaps\"\u003e\n   \u003cimg src=\"https://img.shields.io/badge/docs-latest-green.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca alt=\"license\" href=\"LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n## installation\n\nAdd the following to your `Cargo.toml` file\n\n```toml\n[dependencies]\nhubcaps = \"0.6\"\n```\n\n## usage\n\nBasic usage requires a user agent string and\noptionally a flavor of `hubcaps::Credentials` for making requests as a particular\nGitHub user.\n\nFor user authenticated requests you'll typically want to use\n`hubcaps::Credentials::Token` with a\n[personal access token](https://github.com/settings/tokens).\n\n```rust\nuse hubcaps::{Credentials, Github};\n\nfn main() {\n  let github = Github::new(\n    \"my-cool-user-agent/0.1.0\",\n    Credentials::Token(\"personal-access-token\".to_string()),\n  );\n}\n```\n\nGitHub instances define methods for accessing api services that map closely to\ntheir url structure.\n\nAs a convention, api methods that expect arguments are represented as functions\nthat accept a struct representing those arguments with an optional builder\ninterface for convenience of construction.\n\nSee [examples directory](examples/) for some getting started examples\n\n### repositories\n\nTypically the reference point of most GitHub services is a repository\n\n```rust\nlet repo = github.repo(\"user\", \"repo\");\n```\n\nWith a repo instance on hand, you can access a number of sub services,\nlike `labels`, `deployments`, `pulls`, `issues`, `releases`, and many more.\nEach of this are named functions exported from the repo interface.\n\nSee [examples directory](examples/repos.rs) for examples\n\n### branches\n\nBranches is a service for listing repository branches\n\n```rust\nlet branches = repo.branches();\n```\n\n### labels\n\nLabels is a service for tagging resources like issues and pulls with names which you can later group and filter on.\n\n```rust\nuse hubcaps::labels::LabelOptions;\n\nlet labels = repo.labels();\n\n// create new labels\nlabels.create(\n    \u0026LabelOptions::new(\n      \"rustic\", \"ccc\"\n    )\n  )\n```\n\n### deployments\n\nDeployments is a service for orchestrating deployments of applications sourced from GitHub repositories\n\n```rust\nlet deployments = repo.deployments();\n```\n\nSee [examples directory](examples/deployments.rs) for examples\n\n### pulls\n\nPulls is a service for issuing code change requests against a repository\n\n```rust\nlet pulls = repo.pulls();\n```\n\nSee [examples directory](examples/pulls.rs) for examples\n\n### issues\n\nIssues is a service for tracking bugs for a repository\n\n```rust\nlet issues = repo.issues();\n```\n\nSee [examples directory](examples/issues.rs) for examples\n\n### releases\n\nReleases is a service for tracking changes for a stable releases of a versioned library or application\n\n```rust\nlet releases = repo.releases();\n```\n\n### gists\n\nGists is a service for micro repositories\n\n```rust\nlet gists = github.gists();\n```\n\nSee [examples directory](examples/gists.rs) for examples\n\n\n### hooks\n\nHooks is a service for managing repository hooks\n\n```rust\nlet hooks = repo.hooks();\n```\n\nSee [examples directory](examples/hooks.rs) for examples\n\n### search\n\nSearch provides a raw string query search for indexed data. Currently only search for issues is supported\n\n```rust\nlet search_issues = github.search().issues();\n```\n\n### teams\n\nTeams is a service for listing repository and organization teams\n\n```rust\nlet teams = repo.teams();\n```\n\nSee [examples directory](examples/teams.rs) for examples\n\nDoug Tangren (softprops) 2015-2020\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fhubcaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Fhubcaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Fhubcaps/lists"}