{"id":14985979,"url":"https://github.com/baptiste0928/cargo-install","last_synced_at":"2026-03-03T16:06:15.214Z","repository":{"id":37235892,"uuid":"429360691","full_name":"baptiste0928/cargo-install","owner":"baptiste0928","description":" GitHub action for cached Rust crates installation.","archived":false,"fork":false,"pushed_at":"2026-02-20T08:15:03.000Z","size":5074,"stargazers_count":151,"open_issues_count":2,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-20T12:32:17.996Z","etag":null,"topics":["action","cargo","rust"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baptiste0928.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-11-18T08:58:48.000Z","updated_at":"2026-01-01T10:38:10.000Z","dependencies_parsed_at":"2024-04-10T18:55:59.393Z","dependency_job_id":"cff92707-efff-4b6e-9493-e860a5b63582","html_url":"https://github.com/baptiste0928/cargo-install","commit_stats":{"total_commits":47,"total_committers":3,"mean_commits":"15.666666666666666","dds":0.4893617021276596,"last_synced_commit":"904927dbe77864e0f2281519fe9d5bd097a220b3"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/baptiste0928/cargo-install","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Fcargo-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Fcargo-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Fcargo-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Fcargo-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baptiste0928","download_url":"https://codeload.github.com/baptiste0928/cargo-install/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Fcargo-install/sbom","scorecard":{"id":225513,"data":{"date":"2025-08-11","repo":{"name":"github.com/baptiste0928/cargo-install","commit":"e38323ef017552d7f7af73a3f4db467f278310ed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Maintained","score":3,"reason":"2 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/baptiste0928/cargo-install/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/baptiste0928/cargo-install/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/baptiste0928/cargo-install/ci.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned 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":"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: ISC 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":"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4"],"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-17T03:43:32.992Z","repository_id":37235892,"created_at":"2025-08-17T03:43:32.992Z","updated_at":"2025-08-17T03:43:32.992Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30051133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T15:26:47.567Z","status":"ssl_error","status_checked_at":"2026-03-03T15:26:17.132Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["action","cargo","rust"],"created_at":"2024-09-24T14:12:04.960Z","updated_at":"2026-03-03T16:06:15.197Z","avatar_url":"https://github.com/baptiste0928.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cargo install action\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/baptiste0928/cargo-install)\n[![CI](https://github.com/baptiste0928/cargo-install/actions/workflows/ci.yml/badge.svg)](https://github.com/baptiste0928/cargo-install/actions/workflows/ci.yml)\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e **Versions prior to v3.2 will stop working on February 1st, 2025**, due to\n\u003e GitHub changing their cache service APIs. See the [`@actions/cache`\n\u003e package deprecation notice](https://github.com/actions/toolkit/discussions/1890).\n\nA GitHub Action that runs `cargo install` and automatically caches the resulting binaries to speed up subsequent builds.\n\n## Features\n\n- Install any Rust binary crate from [crates.io], git repositories or custom\n  registries\n- Automatically cache binaries to avoid repeated compilations\n- Version range support to keep crates updated\n- Works on Linux, Windows and MacOS runners\n\n## Usage\n\nThe following example steps install the [`cargo-hack`] and [`cargo-sort`]\ncrates. Read [Quickstart for GitHub Actions] to learn more about Actions usage.\n\n```yaml\n- name: Install cargo-hack from crates.io\n  uses: baptiste0928/cargo-install@v3\n  with:\n    crate: cargo-hack\n    version: '^0.5' # optional semver range (defaults to latest)\n\n- name: Install cargo-sort from git\n  uses: baptiste0928/cargo-install@v3\n  with:\n    crate: cargo-sort\n    git: https://github.com/devinr528/cargo-sort\n    tag: v1.0.9 # `branch` and `commit` are also supported\n\n- name: Run cargo hack\n  run: cargo hack --version\n```\n\nIf no version or branch/tag/commit is specified, the latest version will be\ninstalled. The `--locked` flag is added by default to avoid breakages due to\nunexpected dependencies updates.\n\n### Input parameters\n\n- `crate` _(required)_: Name of the crate to install\n- `version`: Version to install, supports semver range (default: latest)\n- `features`: Space or comma-separated list of crate features to enable\n- `locked`: Adds `--locked` flag to (default: true)\n- `args`: Extra arguments for `cargo install`\n- `cache-key`: Custom string added to the cache key to force-invalidate the\n  cache\n\n#### Git parameters\n\nWhen installing from a git repository, the `version` parameter is ignored.\n\n- `git`: URL of the git repository\n- `branch`: git branch to install from\n- `tag`: git tag to install from\n- `commit`/`rev`: commit hash to install from\n\n`branch`, `tag` and `commit`/`rev` are mutually exclusive. If none of them are\nspecified, the latest commit of the default branch will be used.\n\n#### Custom registry parameters\n\nVersion range resolution is only supported when using a sparse registry index with the `index` parameter. Otherwise, only exact versions can be used.\n\n- `index`: Registry index URL\n- `registry`: Registry name from the Cargo configuration (see\n  [Using an alternate registry](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#using-an-alternate-registry) on the Cargo Book)\n\n`registry` and `index` are mutually exclusive.\n\n### Outputs\n\n- `version`: Installed crate version (or commit hash for git installations)\n- `cache-hit`: Boolean indicating whether the crate was restored from cache\n\n## Caching\n\nCompiled binaries are cached in `~/.cargo-install/\u003ccrate-name\u003e`. The cache key contains a hash derived from the installation context (command arguments and os version).\n\nCache entries expire after 7 days of inactivity. For more details, see [GitHub's caching documentation](https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows).\n\n## Security\n\nInstallation is done using the `cargo` binary installed in the runner.\n\nWhen installing from [crates.io] or a custom sparse registry, the action\nresolves the latest version prior to installation. It is recommended to pin\nexact versions for sensitive workflows.\n\nIf using a git repository, the action uses [`git ls-remote`] to resolve the\ncommit hash. The repository is cloned by `cargo install`.\n\n## Contributing\n\nThere is no particular contribution guidelines, feel free to open a new PR to\nimprove the code. If you want to introduce a new feature, please create an\nissue before.\n\n[changelog]: https://github.com/baptiste0928/cargo-install/releases/tag/v2.0.0\n[crates.io]: https://crates.io\n[`cargo-hack`]: https://crates.io/crates/cargo-hack\n[`cargo-sort`]: https://crates.io/crates/cargo-sort\n[`git ls-remote`]: https://git-scm.com/docs/git-ls-remote\n[Quickstart for GitHub Actions]: https://docs.github.com/en/actions/quickstart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptiste0928%2Fcargo-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaptiste0928%2Fcargo-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptiste0928%2Fcargo-install/lists"}