commit-status
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -13,3 +13,4 @@ 'use strict' | ||
description, | ||
url | ||
url, | ||
rootURL = process.env.GITHUB_API || undefined | ||
}) { | ||
@@ -32,3 +33,3 @@ var validStates = ['pending', 'success', 'error', 'failure'] | ||
var Octokat = require('octokat') | ||
var octo = new Octokat({ token: token }) | ||
var octo = new Octokat({ token: token, rootURL: rootURL }) | ||
@@ -35,0 +36,0 @@ return octo.repos(owner, repo).statuses(sha).create({ |
{ | ||
"name": "commit-status", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Simple command-line application to post commit status to GitHub (for use in CI)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,10 @@ # commit-status | ||
### Use with GitHub Enterprise | ||
If you use GitHub Enterprise, then you can override the API endpoint by `GITHUB_API` environment variable. | ||
```sh | ||
env GITHUB_API=https://[hostname]/api/v3 commit-message ... | ||
``` | ||
## CLI | ||
@@ -28,0 +35,0 @@ |
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 1 instance 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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37349
81
78
0
9