{"id":15547300,"url":"https://github.com/uhop/install-artifact-from-github","last_synced_at":"2026-03-15T21:47:15.618Z","repository":{"id":38002538,"uuid":"279480912","full_name":"uhop/install-artifact-from-github","owner":"uhop","description":"No-dependency micro helper for developers of binary addons for Node that checks the cache for an artifact before attempting to build a project. Save time for your users!","archived":false,"fork":false,"pushed_at":"2025-05-12T02:01:02.000Z","size":65,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-04T19:45:28.719Z","etag":null,"topics":["binary-addons","caching","github-releases"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uhop.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":"2020-07-14T04:25:18.000Z","updated_at":"2025-05-12T02:01:05.000Z","dependencies_parsed_at":"2024-06-18T18:14:04.032Z","dependency_job_id":"38075aca-393f-4f45-893c-6af79da06f5a","html_url":"https://github.com/uhop/install-artifact-from-github","commit_stats":{"total_commits":55,"total_committers":3,"mean_commits":"18.333333333333332","dds":"0.036363636363636376","last_synced_commit":"c092035d1bc36c5019eede7ccde7c47393e12ac4"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/uhop/install-artifact-from-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Finstall-artifact-from-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Finstall-artifact-from-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Finstall-artifact-from-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Finstall-artifact-from-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uhop","download_url":"https://codeload.github.com/uhop/install-artifact-from-github/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uhop%2Finstall-artifact-from-github/sbom","scorecard":{"id":907404,"data":{"date":"2025-08-11","repo":{"name":"github.com/uhop/install-artifact-from-github","commit":"16d9a94bf91852038ee5f3eddb21aff7b3913182"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"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":"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 1/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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.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":"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/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/uhop/install-artifact-from-github/codeql-analysis.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/build.yml:35","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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 'master'"],"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 1 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-24T17:50:00.083Z","repository_id":38002538,"created_at":"2025-08-24T17:50:00.083Z","updated_at":"2025-08-24T17:50:00.083Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30417178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T04:41:02.746Z","status":"ssl_error","status_checked_at":"2026-03-12T04:40:12.571Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["binary-addons","caching","github-releases"],"created_at":"2024-10-02T13:08:35.598Z","updated_at":"2026-03-15T21:47:15.584Z","avatar_url":"https://github.com/uhop.png","language":"JavaScript","readme":"# install-artifact-from-github [![NPM version][npm-img]][npm-url]\n\n[npm-img]: https://img.shields.io/npm/v/install-artifact-from-github.svg\n[npm-url]: https://npmjs.org/package/install-artifact-from-github\n\nThis is a no-dependency micro helper for developers of binary addons for Node. It is literally two small one-file utilities integrated with [GitHub releases](https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/about-releases). The project solves two problems:\n\n* [save-to-github-cache](./Saving) saves a binary artifact to a Github release according to the platform, architecture, and Node ABI.\n  * Designed to be used with [GitHub actions](https://github.com/features/actions).\n* [install-from-cache](./Installing) retrieves a previously saved artifact, tests if it works properly, and rebuilds a project from sources in the case of failure.\n\nIn general, it can save your users from a long recompilation and, in some cases, even save them from installing build tools.\nBy using GitHub facilities ([Releases](https://docs.github.com/en/github/administering-a-repository/about-releases)\nand [Actions](https://github.com/features/actions)) the whole process of publishing and subsequent installations are secure,\ntransparent, painless, inexpensive, or even free for public repositories.\n\n## How to install\n\nInstallation:\n\n```\nnpm install --save install-artifact-from-github\n```\n\n## How to use\n\nIn your `package.json` (pseudo-code with comments):\n\n```js\n{\n  // your custom package.json stuff\n  // ...\n  \"scripts\": {\n    // your scripts go here\n    // ...\n\n    // saves an artifact\n    \"save-to-github\": \"save-to-github-cache --artifact build/Release/ABC.node\",\n\n    // installs using pre-created artifacts\n    \"install\": \"install-from-cache --artifact build/Release/ABC.node\",\n\n    // used by \"install\" to test the artifact\n    \"verify-build\": \"node scripts/verify-build.js\"\n\n    // used by \"install\" to rebuild from sources\n    \"rebuild\": \"node-gyp rebuild\"\n  }\n}\n```\n\nExamples of GitHub actions can be found in the documentation.\n\n## Documentation\n\nThe full documentation is available in the [wiki](https://github.com/uhop/install-artifact-from-github/wiki).\n\n## Release history\n\n- 1.4.0 *added support for uncompresed artifacts and selective compression format.*\n- 1.3.5 *propagated the previous timeout fix to the saving utility.*\n- 1.3.4 *minor fixes + a timeout fix: use a new default agent for GET. Thx, [Laura Hausmann](https://github.com/zotanmew).*\n- 1.3.3 *minor refactor, added support for a personal token.*\n- 1.3.2 *added support for the 204 response and error logging.*\n- 1.3.1 *added a way to specify a custom build, thx [Grisha Pushkov](https://github.com/reepush) + a test.*\n- 1.3.0 *enhanced support for custom mirrors.*\n- 1.2.0 *support for NPM \u003e= 7.*\n- 1.1.3 *technical release: updated docs.*\n- 1.1.2 *technical release: updated docs.*\n- 1.1.1 *numerous bugfixes to please Github REST API.*\n- 1.1.0 *moved `save-to-github` here from a separate project, reduced 3rd-party dependencies.*\n- 1.0.2 *fixed a `yarn`-specific bug.*\n- 1.0.1 *fixed a bug in the environment variable parameter.*\n- 1.0.0 *initial release (extracted from [node-re2](https://github.com/uhop/node-re2)).*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhop%2Finstall-artifact-from-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuhop%2Finstall-artifact-from-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuhop%2Finstall-artifact-from-github/lists"}