{"id":15379583,"url":"https://github.com/blond/nodegit-clone","last_synced_at":"2025-10-12T14:38:52.234Z","repository":{"id":65463338,"uuid":"52459319","full_name":"blond/nodegit-clone","owner":"blond","description":":sheep: Clone git repository with nodegit","archived":false,"fork":false,"pushed_at":"2017-03-12T14:43:18.000Z","size":58,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-10T04:57:34.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/blond.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}},"created_at":"2016-02-24T17:01:44.000Z","updated_at":"2021-05-03T22:20:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea0ae5c9-8238-48e0-8367-9e6584d2a546","html_url":"https://github.com/blond/nodegit-clone","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/blond/nodegit-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blond%2Fnodegit-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blond%2Fnodegit-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blond%2Fnodegit-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blond%2Fnodegit-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blond","download_url":"https://codeload.github.com/blond/nodegit-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blond%2Fnodegit-clone/sbom","scorecard":{"id":243926,"data":{"date":"2025-08-11","repo":{"name":"github.com/blond/nodegit-clone","commit":"b713ee631d4412192ebd00fc6ab5f71eb25f1941"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":-1,"reason":"No tokens found","details":null,"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":"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":"Code-Review","score":6,"reason":"Found 11/16 approved changesets -- score normalized to 6","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":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":-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-17T07:10:07.743Z","repository_id":65463338,"created_at":"2025-08-17T07:10:07.743Z","updated_at":"2025-08-17T07:10:07.743Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011607,"owners_count":26084964,"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-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-10-01T14:19:24.709Z","updated_at":"2025-10-12T14:38:52.208Z","avatar_url":"https://github.com/blond.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"nodegit-clone\n=============\n\n[![NPM Status][npm-img]][npm]\n[![Travis Status][test-img]][travis]\n[![Coverage Status][coverage-img]][coveralls]\n[![Dependency Status][dependency-img]][david]\n\n[npm]:            https://www.npmjs.org/package/nodegit-clone\n[npm-img]:        https://img.shields.io/npm/v/nodegit-clone.svg\n\n[travis]:         https://travis-ci.org/blond/nodegit-clone\n[test-img]:       https://img.shields.io/travis/blond/nodegit-clone.svg?label=tests\n\n[coveralls]:      https://coveralls.io/r/blond/nodegit-clone\n[coverage-img]:   https://img.shields.io/coveralls/blond/nodegit-clone.svg\n\n[david]:          https://david-dm.org/blond/nodegit-clone\n[dependency-img]: http://img.shields.io/david/blond/nodegit-clone.svg\n\nClone git repository with [nodegit](http://www.nodegit.org/).\n\nInstall\n-------\n\n```\n$ npm install --save nodegit-clone\n```\n\nUsage\n-----\n\n```js\nimport clone from 'nodegit-clone';\n\nclone('https://github.com/owner/repo')\n    .then(repo =\u003e {\n        // Access any repository methods here.\n        console.log(repo.path());\n    });\n\n// path/to/repo/.git\n```\n\nAPI\n---\n\n### clone({ url, [localPath], [ghToken], [ssh] })\n\nReturns a Promise, that resolves to instance of [Repository](http://www.nodegit.org/api/repository/).\n\n#### url\n\nType: `string`\n\nThe URL to the repository.\n\n**Note:** the following protocols are supported: `http`, `https`, `git` and `ssh`.\n\n```js\nclone('http://github.com/owner/repo');\nclone('https://github.com/owner/repo');\nclone('git://github.com/owner/repo.git');\nclone('git@github.com:owner/repo.git');\n```\n\n#### localPath\n\nType: `string`\n\nThe Local path to store repository.\n\n**Note:** if `localPath` is not specified then repository will be cloned to directory with repository name.\n\n#### ghToken\n\nType: `string`\n\nThe GitHub personal OAuth token.\n\n#### ssh\n\nType: `object`\n\nThe object with paths to ssh keys and passphrase.\n\nGitHub Private Repositories\n---------------------------\n\nBefore you can clone a repository, you'll need a GitHub OAuth application token. You can find more information on generating one here: [Creating an access token for command-line use](https://help.github.com/articles/creating-an-access-token-for-command-line-use/).\n\nIn this example we're going to clone one of our private test repositories from GitHub. This must be an https protocol URL for the clone to work.\n\n```js\n// Keep this value a secret. If you accidentally commit\n// this key to a public GitHub repository they will immediately revoke it.\nconst GITHUB_TOKEN = '\u003cGH_TOKEN\u003e';\n\nclone({\n    url: 'https://github.com/owner/private',\n    ghToken: GITHUB_TOKEN\n});\n```\n\nSSH Keys\n--------\n\nBefore you can clone a repository, you'll need SSH keys. You can find more information on generating them here: [Generating an SSH key](https://help.github.com/articles/generating-an-ssh-key/).\n\nIn this example we're going to clone one of our private test repositories. This must be an ssh protocol URL for the clone to work.\n\n```js\nclone({\n    url: 'git@github.com:owner/private.git',\n    ssh: {\n        publicKey: '/path/to/public-key',\n        privateKey: '/path/to/private-key'\n    }\n});\n```\n\nFor encrypted keys you should specify the `passphrase` option:\n\n```js\nclone({\n    url: 'git@github.com:owner/private.git',\n    ssh: {\n        publicKey: '/path/to/public-key',\n        privateKey: '/path/to/private-key',\n        passphrase: 'password'\n    }\n});\n```\n\nLicense\n-------\n\nMIT © [Andrew Abramov](https://github.com/blond)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblond%2Fnodegit-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblond%2Fnodegit-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblond%2Fnodegit-clone/lists"}