Comparing version 0.7.4 to 0.7.5
# Changelog | ||
## 0.7.5 (2017-07-13) | ||
Fixes: | ||
- Line breaks in the `PRIVATE_KEY` environment variable are now replaced. | ||
[View full changelog](https://github.com/probot/probot/compare/v0.7.4...v0.7.5) | ||
## 0.7.4 (2017-06-30) | ||
@@ -4,0 +12,0 @@ |
@@ -95,3 +95,3 @@ # Plugins | ||
Plugins can be published in NPM modules, which can either be deployed as stand-alone bots, or combined with other plugins. | ||
Plugins can be published in npm modules, which can either be deployed as stand-alone bots, or combined with other plugins. | ||
@@ -98,0 +98,0 @@ Use the [plugin-template](https://github.com/probot/plugin-template) repository to get started building your plugin as a node module. |
@@ -19,3 +19,3 @@ const fs = require('fs'); | ||
if (process.env.PRIVATE_KEY) { | ||
return process.env.PRIVATE_KEY; | ||
return process.env.PRIVATE_KEY.replace(/\\n/g, '\n'); | ||
} | ||
@@ -22,0 +22,0 @@ if (process.env.PRIVATE_KEY_PATH) { |
{ | ||
"name": "probot", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "a trainable robot that responds to activity on GitHub", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/probot/probot", |
@@ -51,2 +51,17 @@ const fs = require('fs'); | ||
describe('when a PRIVATE_KEY has line breaks', function () { | ||
beforeEach(function () { | ||
process.env.PRIVATE_KEY = 'line 1\\nline 2'; | ||
}); | ||
afterEach(function () { | ||
delete process.env.PRIVATE_KEY; | ||
}); | ||
it('should return the key', function () { | ||
expect(findPrivateKey()) | ||
.toEqual('line 1\nline 2'); | ||
}); | ||
}); | ||
describe('when a PRIVATE_KEY_PATH env var is provided', function () { | ||
@@ -53,0 +68,0 @@ beforeEach(function () { |
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
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
66623
1130
27
3