{"id":48355089,"url":"https://github.com/extractions/setup-crate","last_synced_at":"2026-04-05T11:01:10.195Z","repository":{"id":60142035,"uuid":"341105718","full_name":"extractions/setup-crate","owner":"extractions","description":"📦 GitHub Action to install a Rust crate from a GitHub release","archived":false,"fork":false,"pushed_at":"2026-03-29T17:15:31.000Z","size":497,"stargazers_count":19,"open_issues_count":4,"forks_count":4,"subscribers_count":0,"default_branch":"trunk","last_synced_at":"2026-03-29T18:51:40.143Z","etag":null,"topics":["crate","github-actions","rust"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/extractions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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-02-22T06:48:27.000Z","updated_at":"2026-03-29T17:06:45.000Z","dependencies_parsed_at":"2023-02-19T08:45:34.962Z","dependency_job_id":null,"html_url":"https://github.com/extractions/setup-crate","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"f01d17008876d671398fb289677eb8b3ca3239bf"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/extractions/setup-crate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractions%2Fsetup-crate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractions%2Fsetup-crate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractions%2Fsetup-crate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractions%2Fsetup-crate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extractions","download_url":"https://codeload.github.com/extractions/setup-crate/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extractions%2Fsetup-crate/sbom","scorecard":{"id":388628,"data":{"date":"2025-08-11","repo":{"name":"github.com/extractions/setup-crate","commit":"4993624604c307fbca528d28a3c8b60fa5ecc859"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.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":"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":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":"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":"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":"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":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/extractions/setup-crate/build.yaml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/extractions/setup-crate/build.yaml/trunk?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/extractions/setup-crate/build.yaml/trunk?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE: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 'trunk'"],"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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"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-18T17:16:17.257Z","repository_id":60142035,"created_at":"2025-08-18T17:16:17.257Z","updated_at":"2025-08-18T17:16:17.257Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430075,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"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":["crate","github-actions","rust"],"created_at":"2026-04-05T11:00:33.329Z","updated_at":"2026-04-05T11:01:10.151Z","avatar_url":"https://github.com/extractions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-crate\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/extractions/setup-crate/build.yaml?branch=trunk)](https://github.com/extractions/setup-crate/actions/workflows/build.yaml)\n\nThis GitHub Action will install a release of a Rust crate for you.\n\n## Introduction\n\nThis action will work for any project that satisfies the following conditions:\n- The project is a public GitHub project.\n- The project uses GitHub releases with semver tag names.\n- The project attaches assets to the GitHub release that contain a Rust target.\n  The following targets are looked for:\n\n  | Arch    | Node Platform | Targets                                                     |\n  | ------- | ------------- | ----------------------------------------------------------- |\n  | `x64`   | `linux`       | `x86_64-unknown-linux-musl` or `x86_64-unknown-linux-gnu`   |\n  | `x64`   | `darwin`      | `x86_64-apple-darwin`                                       |\n  | `x64`   | `win32`       | `x86_64-pc-windows-msvc`                                    |\n  | `arm64` | `linux`       | `aarch64-unknown-linux-musl` or `aarch64-unknown-linux-gnu` |\n  | `arm64` | `darwin`      | `aarch64-apple-darwin`                                      |\n  | `arm64` | `win32`       | `aarch64-pc-windows-msvc`                                   |\n\n- The asset is a `.tar.gz` or `.zip` archive that contains a binary with the\n  project name.\n\n## Usage\n\n### Examples\n\nIn most cases all you will need is to specify `repo` and the `owner/name` of the\nproject in your workflow. For example the following installs the latest version\nof [mdBook](https://github.com/rust-lang/mdBook).\n\n```yaml\n- uses: extractions/setup-crate@v2\n  with:\n    repo: rust-lang/mdBook\n```\n\nIf you want a specific version you can specify this by suffixing version to the\ninput. For example the following installs the latest `0.10.x` version of\n[just](https://github.com/casey/just).\n\n```yaml\n- uses: extractions/setup-crate@v2\n  with:\n    repo: casey/just@0.10\n```\n\n### Inputs\n\n| Name           | Required | Description                                                         | Type   | Default                     |\n| -------------- | -------- | ------------------------------------------------------------------- | ------ | --------------------------- |\n| `repo`         | no       | The GitHub repository name and valid NPM-style semver specification | string |                             |\n| `github-token` | no       | The GitHub token for making API requests                            | string | ${{ secrets.GITHUB_TOKEN }} |\n\nThe semver specification is passed directly to NPM's [semver\npackage](https://www.npmjs.com/package/semver). This GitHub Action will install\nthe latest matching release. Examples include\n\n- `version: '*'` latest version (default).\n- `version: '0.1'` equivalent to `\u003e=0.1.0 \u003c0.2.0`.\n- `version: '0.1.x'` equivalent to `\u003e=0.1.0 \u003c0.2.0`.\n- `version: '0.1.0'` equivalent to `=0.1.0`.\n- `version: '^0.1.0'` equivalent to `\u003e=0.1.0 \u003c0.2.0`.\n\n### Deprecated inputs\n\nThe following inputs are still supported for now but will be removed in a future\nrelease.\n\n| Name      | Required | Description                            | Type   | Default |\n| --------- | -------- | -------------------------------------- | ------ | ------- |\n| `owner`   | no       | The GitHub user or organization name   | string |         |\n| `name`    | no       | The GitHub repository name             | string |         |\n| `version` | no       | A valid NPM-style semver specification | string | *       |\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextractions%2Fsetup-crate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextractions%2Fsetup-crate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextractions%2Fsetup-crate/lists"}