@extrahorizon/exh-cli 1.9.0-dev-94-26f3690 → 1.9.0-dev-96-f9b45d3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* Specify the permissions your task needs
|
|
6
6
|
* The CLI automatically creates a user, role, and credentials for your task
|
|
7
7
|
* These credentials are injected as environment variables into the task automatically
|
|
8
|
+
* If you want to migrate your existing tasks to use this feature, see the [migration guide](https://docs.extrahorizon.com/extrahorizon/migration-guides/execution-credentials-for-tasks).
|
|
8
9
|
|
|
9
10
|
### v1.8.2
|
|
10
11
|
* Updated the ExH SDK to `8.6.0` to fix a security warning from `axios`
|
|
@@ -90,7 +90,7 @@ async function validateConfig(config) {
|
|
|
90
90
|
else {
|
|
91
91
|
throw new Error('Code path not specified');
|
|
92
92
|
}
|
|
93
|
-
if (config.executionCredentials) {
|
|
93
|
+
if (config.executionCredentials && config.environment) {
|
|
94
94
|
const restrictedProperties = ['API_HOST', 'API_OAUTH_CONSUMER_KEY', 'API_OAUTH_CONSUMER_SECRET', 'API_OAUTH_TOKEN', 'API_OAUTH_TOKEN_SECRET'];
|
|
95
95
|
const foundProperties = Object.keys(config.environment).filter(key => restrictedProperties.includes(key));
|
|
96
96
|
if (foundProperties.length > 0) {
|