github-release-cli
Advanced tools
+11
-11
@@ -106,6 +106,2 @@ 'use strict'; | ||
| var octokit = new _rest2.default(); /* eslint no-console: 0 */ | ||
| /* eslint max-len: 0 */ | ||
| _commander2.default.version(_package2.default.version).usage('<command> [<args>]').option('-T, --token <token>', 'OAuth2 token').option('-o, --owner <owner>', 'owner').option('-r, --repo <repo>', 'repo').option('-t, --tag <tag>', 'tag').option('-n, --name <name>', 'name').option('-b, --body <body>', 'body', false).option('-d, --draft [value]', 'draft', function (val) { | ||
@@ -121,4 +117,6 @@ if (String(val).toLowerCase() === 'false') { | ||
| return true; | ||
| }); | ||
| }); /* eslint no-console: 0 */ | ||
| /* eslint max-len: 0 */ | ||
| _commander2.default.parse(process.argv); | ||
@@ -130,8 +128,10 @@ | ||
| if (command !== 'list') { | ||
| octokit.authenticate({ | ||
| type: 'oauth', | ||
| token: _commander2.default.token || process.env.GITHUB_TOKEN | ||
| }); | ||
| } | ||
| var octokit = new _rest2.default({ | ||
| auth: function auth() { | ||
| var token = _commander2.default.token || process.env.GITHUB_TOKEN; | ||
| if (token) { | ||
| return 'token ' + token; | ||
| } | ||
| } | ||
| }); | ||
@@ -138,0 +138,0 @@ function next(response) { |
+1
-1
| { | ||
| "name": "github-release-cli", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "A command-line tool for managing release assets on a GitHub repository", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/cheton/github-release-cli", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
24661
0.1%376
0.27%1
-50%