{"id":903289,"name":"@dmoosocool/deploy","ecosystem":"npm","description":"1. 使用 `getEnvData` 读取项目配置信息 2. 使用 `loadConfigFromEnv` 读取具体需要发布环境的信息. 3. 使用 `packageFolder` 将上传目录压缩成 zip 包. 4. 使用 `generateIncrementalPackage` 将两个资源包生成增量包进行上传. 5. 使用 `uploadFile` 将 zip 包上传至服务器. 6. 使用 `uploadFile` 上传 shell 脚本用于在服务器端解压 zip 资源包以及重启 nginx 服务. ","homepage":"https://github.com/dmoosocool/deploy#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/dmoosocool/deploy","keywords_array":[],"namespace":"dmoosocool","versions_count":7,"first_release_published_at":"2021-05-10T10:08:13.720Z","latest_release_published_at":"2021-05-14T03:21:48.603Z","latest_release_number":"1.0.7","last_synced_at":"2026-05-30T23:01:50.792Z","created_at":"2022-04-07T16:31:17.180Z","updated_at":"2026-05-30T23:01:50.792Z","registry_url":"https://www.npmjs.com/package/@dmoosocool/deploy","install_command":"npm install @dmoosocool/deploy","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.0.7"}},"repo_metadata":{"id":40926734,"uuid":"366287016","full_name":"dmoosocool/deploy","owner":"dmoosocool","description":"nodejs ssh node-ssh remote-shell","archived":false,"fork":false,"pushed_at":"2023-07-19T02:28:35.000Z","size":276,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T05:54:47.734Z","etag":null,"topics":["node-ssh","remote-shell","ssh"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmoosocool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-11T07:02:12.000Z","updated_at":"2023-03-08T22:02:06.000Z","dependencies_parsed_at":"2024-11-30T08:20:38.262Z","dependency_job_id":null,"html_url":"https://github.com/dmoosocool/deploy","commit_stats":{"total_commits":53,"total_committers":2,"mean_commits":26.5,"dds":"0.30188679245283023","last_synced_commit":"099bd4c37161876295b0d76e27285b3f91f17b1c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dmoosocool/deploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmoosocool","download_url":"https://codeload.github.com/dmoosocool/deploy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/sbom","scorecard":{"id":348254,"data":{"date":"2025-08-11","repo":{"name":"github.com/dmoosocool/deploy","commit":"099bd4c37161876295b0d76e27285b3f91f17b1c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"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":"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/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/dmoosocool/deploy/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/dmoosocool/deploy/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/dmoosocool/deploy/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/dmoosocool/deploy/codeql-analysis.yml/master?enable=pin","Info:   0 out of   4 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":"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":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","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":"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":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-652h-xwhf-q4h6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"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-18T07:41:44.810Z","repository_id":40926734,"created_at":"2025-08-18T07:41:44.810Z","updated_at":"2025-08-18T07:41:44.810Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746668,"owners_count":24813576,"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-08-23T02:00:09.327Z","response_time":69,"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"},"owner_record":{"login":"dmoosocool","name":"DM|全渣攻城獅","uuid":"30599141","kind":"user","description":"","email":"","website":"https://www.dmoo.cool","location":"Shenzhen, China","twitter":null,"company":"@NaturalSelectionLabs","icon_url":"https://avatars.githubusercontent.com/u/30599141?u=b503f045dacc69f9b53c09e55e6f4b1d23ff1e76\u0026v=4","repositories_count":85,"last_synced_at":"2025-08-15T05:51:32.387Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/dmoosocool","funding_links":[],"total_stars":121,"followers":72,"following":166,"created_at":"2022-11-13T12:33:51.950Z","updated_at":"2025-08-15T05:51:32.387Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmoosocool","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmoosocool/repositories"},"tags":[{"name":"v1.0.2","sha":"eb2b9219f01f9fed24b63bc3ab9bb6ac0a9bb2fe","kind":"tag","published_at":"2021-05-11T07:45:19.000Z","download_url":"https://codeload.github.com/dmoosocool/deploy/tar.gz/v1.0.2","html_url":"https://github.com/dmoosocool/deploy/releases/tag/v1.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/dmoosocool/deploy@v1.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"c190e53968c4c0b2fd6ad478ff7ae0923360a90f","kind":"commit","published_at":"2021-05-10T16:03:08.000Z","download_url":"https://codeload.github.com/dmoosocool/deploy/tar.gz/v1.0.1","html_url":"https://github.com/dmoosocool/deploy/releases/tag/v1.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/dmoosocool/deploy@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/tags/v1.0.1/manifests"}]},"repo_metadata_updated_at":"2025-12-31T10:42:51.091Z","dependent_packages_count":1,"downloads":13,"downloads_period":"last-month","dependent_repos_count":0,"rankings":{"downloads":32.37087298809202,"dependent_repos_count":25.32799796580169,"dependent_packages_count":16.223928578504864,"stargazers_count":15.548507148482713,"forks_count":13.860205004920381,"average":20.666302337160335},"purl":"pkg:npm/%40dmoosocool/deploy","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@dmoosocool/deploy","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@dmoosocool/deploy","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@dmoosocool/deploy/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-07-20T16:18:50.807Z","issues_count":0,"pull_requests_count":4,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.0,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":4,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmoosocool%2Fdeploy/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@dmoosocool%2Fdeploy/codemeta","maintainers":[{"uuid":"dmoosocool","login":"dmoosocool","name":null,"email":"DmooSoCool@gmail.com","url":null,"packages_count":28,"html_url":"https://www.npmjs.com/~dmoosocool","role":null,"created_at":"2022-11-16T21:53:05.141Z","updated_at":"2022-11-16T21:53:05.141Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/dmoosocool/packages"}]}