Comparing version 1.1.0 to 1.2.0
@@ -7,3 +7,4 @@ var program = require('commander'); | ||
.option('--branch [branch]', 'An optional branch argument. If not provided, the command will attempt to discover it through an env variable') | ||
.option('--sha [sha]', 'An optional commit sha argument. If not provided, the command will attempt to discover it through an env variable'); | ||
.option('--sha [sha]', 'An optional commit sha argument. If not provided, the command will attempt to discover it through an env variable') | ||
.option('--timeout [minutes]', 'An optional timeout in minutes. If none is specified, 10 minutes will be used.'); | ||
@@ -10,0 +11,0 @@ program |
@@ -39,5 +39,5 @@ var async = require('async'); | ||
sha = process.env.WERCKER_GIT_COMMIT; | ||
} else if (process.env.BAMBOO_REPOSITORY_GIT_BRANCH) { | ||
branch = process.env.BAMBOO_REPOSITORY_GIT_BRANCH; | ||
sha = process.env.BAMBOO_REPOSITORY_REVISION_NUMBER; | ||
} else if (process.env.bamboo_repository_git_branch) { | ||
branch = process.env.bamboo_repository_git_branch; | ||
sha = process.env.bamboo_repository_revision_number; | ||
} | ||
@@ -56,3 +56,9 @@ | ||
var stillRunning; | ||
var timeout = (parseInt(program.timeout, 10) || 10); | ||
setTimeout(function () { | ||
process.stderr.write('Timed out after ' + timeout + ' minute' + (timeout > 1 ? 's.' : '.')); | ||
return process.exit(1); | ||
}, timeout * 60 * 1000); | ||
if (!commit.branch) { | ||
@@ -89,3 +95,3 @@ process.stderr.write('Branch could not be determined.'); | ||
if (res.statusCode === 403) return done(new Error('Not permitted.')); | ||
if (res.statusCode === 404) return done(new Error('Repo not found.')); | ||
if (res.statusCode === 404) return done(new Error('Repo or commit not found.')); | ||
if (res.statusCode === 400) return done(new Error('Invalid request.')); | ||
@@ -92,0 +98,0 @@ |
{ | ||
"name": "bithound", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Commands for interacting with bitHound: https://bithound.io", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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 2 instances in 1 package
17478
307