Comparing version 1.10.0 to 1.11.0
16
index.js
@@ -84,2 +84,18 @@ let drone = require('./utils/drone') | ||
ci = 'github_actions' | ||
} else if (process.env.NETLIFY) { | ||
// Reference: https://www.netlify.com/docs/continuous-deployment/#environment-variables | ||
repo = process.env.REPOSITORY_URL.split('@github.com/').pop() | ||
event = process.env.PULL_REQUEST?'pull_request':'push' | ||
pull_request_number = process.env.PULL_REQUEST?process.env.REVIEW_ID:'' | ||
sha = process.env.COMMIT_REF | ||
branch = process.env.HEAD | ||
ci = 'netlify' | ||
} else if (process.env.NOW_GITHUB_ORG) { | ||
// Reference: https://zeit.co/docs/v2/advanced/now-for-github/ | ||
repo = process.env.NOW_GITHUB_ORG + '/' + process.env.NOW_GITHUB_REPO | ||
event = 'push' | ||
pull_request_number = '' | ||
sha = process.env.NOW_GITHUB_COMMIT_SHA | ||
branch = process.env.NOW_GITHUB_COMMIT_REF | ||
ci = 'now' | ||
} else if (process.env.CI) { | ||
@@ -86,0 +102,0 @@ // Generic variables for docker images, custom CI builds, etc. |
{ | ||
"name": "ci-env", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Environment variables exposed by CI tools", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,7 +0,6 @@ | ||
[![Build Status](http://drone-community.eastus.cloudapp.azure.com/api/badge/github.com/siddharthkp/ci-env/status.svg?branch=master)](http://drone-community.eastus.cloudapp.azure.com/github.com/siddharthkp/ci-env) | ||
<p align="center"> | ||
<br> | ||
<b>Environment variables exposed by CI tools</b> | ||
<br> | ||
<br><br> | ||
<img src="https://travis-ci.org/siddharthkp/ci-env.svg?branch=master&maxAge=3600"/> | ||
</p> | ||
@@ -11,3 +10,3 @@ | ||
Supports travis, circle, wercker, drone, codeship and GitHub Actions. | ||
Supports travis, circle, wercker, drone, codeship, now(zeit), netlify and GitHub Actions. | ||
@@ -14,0 +13,0 @@ Kinda supports custom CI as well. [Specs here](https://github.com/siddharthkp/ci-env/blob/master/index.js#L68-L79) |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 10 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
13362
246
41
102
1