{"id":19343524,"url":"https://github.com/hex0cter/github-release-cli2","last_synced_at":"2025-11-18T07:03:56.575Z","repository":{"id":85494095,"uuid":"351448394","full_name":"hex0cter/github-release-cli2","owner":"hex0cter","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-25T13:48:24.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T07:58:54.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hex0cter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":"cheton","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-03-25T13:34:57.000Z","updated_at":"2021-03-25T13:48:27.000Z","dependencies_parsed_at":"2023-06-03T20:00:10.363Z","dependency_job_id":null,"html_url":"https://github.com/hex0cter/github-release-cli2","commit_stats":{"total_commits":64,"total_committers":4,"mean_commits":16.0,"dds":0.234375,"last_synced_commit":"206533122367a4881237124b295fb39a1ba05aaf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hex0cter/github-release-cli2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex0cter%2Fgithub-release-cli2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex0cter%2Fgithub-release-cli2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex0cter%2Fgithub-release-cli2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex0cter%2Fgithub-release-cli2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex0cter","download_url":"https://codeload.github.com/hex0cter/github-release-cli2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex0cter%2Fgithub-release-cli2/sbom","scorecard":{"id":462706,"data":{"date":"2025-08-11","repo":{"name":"github.com/hex0cter/github-release-cli2","commit":"206533122367a4881237124b295fb39a1ba05aaf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":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"}}]},"last_synced_at":"2025-08-19T11:34:36.046Z","repository_id":85494095,"created_at":"2025-08-19T11:34:36.046Z","updated_at":"2025-08-19T11:34:36.046Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285020590,"owners_count":27101230,"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-11-18T02:00:05.759Z","response_time":61,"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-11-10T03:38:34.989Z","updated_at":"2025-11-18T07:03:56.560Z","avatar_url":"https://github.com/hex0cter.png","language":"JavaScript","funding_links":["https://opencollective.com/cheton"],"categories":[],"sub_categories":[],"readme":"# github-release-cli2 [![build status](https://travis-ci.org/cheton/github-release-cli.svg?branch=master)](https://travis-ci.org/cheton/github-release-cli)\n\nTemporary repo before [this bug](https://github.com/cheton/github-release-cli/issues/25) in [upstream](https://github.com/cheton/github-release-cli) is fixed.\n\n\n[![NPM](https://nodei.co/npm/github-release-cli.png?downloads=true\u0026stars=true)](https://www.npmjs.com/package/github-release-cli)\n\nA command-line tool for managing release assets on a GitHub repository.\n\n## Installation\n\n```\nnpm install -g github-release-cli2\n```\n\n## Command Line Usage\n\nRun `github-release` with `-h` or `--help` options:\n\n```\nUsage: github-release \u003ccommand\u003e [\u003cargs\u003e]\n\nOptions:\n  -V, --version          output the version number\n  --baseurl \u003cbaseurl\u003e    API endpoint (default: \"https://api.github.com\")\n  --token \u003ctoken\u003e        OAuth2 token (default: null)\n  --owner \u003cowner\u003e        The repository owner. (default: \"\")\n  --repo \u003crepo\u003e          The repository name. (default: \"\")\n  --tag \u003ctag\u003e            The name of the tag.\n  --commitish \u003cvalue\u003e    Specifies the commitish value for tag. Unused if the tag already exists.\n  --release-id \u003cid\u003e      The release id.\n  --release-name \u003cname\u003e  The name of the release. (default: \"\")\n  --body \u003cbody\u003e          Text describing the contents of the tag.\n  --draft [value]        `true` makes the release a draft, and `false` publishes the release.\n  --prerelease [value]   `true` to identify the release as a prerelease, `false` to identify the release as a full release.\n  -h, --help             display help for command\n```\n\n## Commands\n\n### List\n\n```sh\ngithub-release list\n  --owner cheton \\\n  --repo github-release-cli\n```\n\n### Upload\n\n```sh\ngithub-release upload \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --tag \"v0.1.0\" \\\n  --release-name \"v0.1.0\" \\\n  --body \"This release contains bug fixes and imporvements, including:\\n...\" \\\n  archive.zip index.html app.min.css app.min.js\n```\n\n#### Specify the commitish value for tag\n\n```sh\ngithub-release upload \\\n    --owner cheton \\\n    --repo github-release-cli \\\n    --commitish 6a8e375 \\\n    --tag \"v0.1.0\" \\\n    --release-name \"v0.1.0\" \\\n    --body \"The commitish value for tag\"\n```\n\n#### Create a prerelease\n\n```sh\ngithub-release upload \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --tag \"v0.1.0\" \\\n  --release-name \"v0.1.0\" \\\n  --body \"This is a prerelease\" \\\n  --prerelease\n```\n\n#### Change a prerelease to a published release\n\n```sh\ngithub-release upload \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --tag \"v0.1.0\" \\\n  --release-name \"v0.1.0\" \\\n  --body \"This is a published release\" \\\n  --prerelease=false\n```\n\n### Delete\n\n#### Delete release assets\n\nYou can use glob expressions to match files:\n```sh\ngithub-release delete \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --tag \"v0.1.0\" \\\n  archive.zip index.html \"app.*\"\n```\n\n#### Delete a release by specifying the tag name\n\n```sh\ngithub-release delete \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --tag \"v0.1.0\"\n```\n\n#### Delete a release by specifying the release id\n\n```sh\ngithub-release delete \\\n  --owner cheton \\\n  --repo github-release-cli \\\n  --release-id 17994985\n```\n\n## Examples\n\nhttps://github.com/cncjs/cncjs-pendant-tinyweb/blob/master/.travis.yml\n\n## Secure Setup\n\n### 1. Get an OAuth token from GitHub\n\nFirst you will need to get an OAuth Token from GitHub using your own username and \"note\":\n\n```sh\ncurl \\\n  -u 'username' \\\n  -d '{\"scopes\":[\"repo\"], \"note\":\"Publish to GitHub Releases\"}' \\\n  https://api.github.com/authorizations\n```\n\nFor users with two-factor authentication enabled, you must send the user's authentication code (i.e., one-time password) in the `X-GitHub-OTP` header:\n\n```sh\ncurl \\\n  -u 'username' \\\n  -H 'X-GitHub-OTP: 000000' \\\n  -d '{\"scopes\":[\"repo\"], \"note\":\"Publish to GitHub Releases\"}' \\\n  https://api.github.com/authorizations\n```\n\n### 2. Storing the OAuth token in an environment variable\n\nFor reducing security risks, you can store your OAuth token in an environment variable.\n\nExport the token using the one you got from above:\n\n```sh\nexport GITHUB_TOKEN=your_token\n```\n\n### 3. Set up a CI build\n\nNow you're ready to upload assets to a GitHub repository from a CI server. For example:\n\n```sh\nCOMMIT_LOG=`git log -1 --format='%ci %H %s'`\ngithub-release upload \\\n  --owner=cheton \\\n  --repo=github-release-cli \\\n  --tag=\"latest\" \\\n  --release-name=\"${TRAVIS_BRANCH}\" \\\n  --body=\"${COMMIT_LOG}\" \\\n  \"releases/myapp-0.1.0-win-x32.exe\" \\\n  \"releases/myapp-0.1.0-win-x64.exe\"\n```\n\nIf you're using Travis CI, you may want to encrypt environment variables:\n\n```sh\ntravis encrypt GITHUB_TOKEN=your_token\n```\n\nLearn how to define encrypted variables in .travis.yml:\u003cbr\u003e\nhttps://docs.travis-ci.com/user/environment-variables/#Defining-encrypted-variables-in-.travis.yml\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex0cter%2Fgithub-release-cli2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex0cter%2Fgithub-release-cli2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex0cter%2Fgithub-release-cli2/lists"}