Comparing version 1.2.0 to 1.3.0
@@ -39,5 +39,11 @@ var async = require('async'); | ||
sha = process.env.WERCKER_GIT_COMMIT; | ||
} else if (process.env.APPVEYOR) { | ||
branch = process.env.APPVEYOR_REPO_BRANCH; | ||
sha = process.env.APPVEYOR_REPO_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.BITBUCKET_BRANCH) { | ||
branch = process.env.BITBUCKET_BRANCH; | ||
sha = process.env.BITBUCKET_COMMIT; | ||
} | ||
@@ -44,0 +50,0 @@ |
{ | ||
"name": "bithound", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Commands for interacting with bitHound: https://bithound.io", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -30,3 +30,3 @@ var tap = require('tap'); | ||
exec('node bithound check git@github.com/provider/owner/repo.git --sha sha --branch branch', { env: env }, function (err, stdout, stderr) { | ||
tap.equal(stderr, 'Repo not found.'); | ||
tap.equal(stderr, 'Repo or commit not found.'); | ||
tap.equal(err.code, 1); | ||
@@ -114,3 +114,3 @@ server.close(); | ||
tap.ok(err); | ||
tap.equal(stderr, 'Repo not found.'); | ||
tap.equal(stderr, 'Repo or commit not found.'); | ||
tap.equal(err.code, 1); | ||
@@ -181,2 +181,13 @@ done(); | ||
}, | ||
appveyor: function (done) { | ||
env.APPVEYOR = true; | ||
env.APPVEYOR_REPO_COMMIT = 'thisisasha'; | ||
env.APPVEYOR_REPO_BRANCH = 'thisisabranch'; | ||
exec('node bithound check git@github.com/success/200.git', { env: env }, async.apply(noError, done)); | ||
}, | ||
bitbucket: function (done) { | ||
env.BITBUCKET_COMMIT = 'thisisasha'; | ||
env.BITBUCKET_BRANCH = 'thisisabranch'; | ||
exec('node bithound check git@github.com/success/200.git', { env: env }, async.apply(noError, done)); | ||
}, | ||
wercker: function (done) { | ||
@@ -188,4 +199,4 @@ env.WERCKER = true; | ||
} | ||
}, function () { server.close(); t.end(); }); | ||
}, function () { t.end(); server.close(); }); | ||
}); | ||
}); |
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 5 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
18284
324
26