@extrahorizon/exh-cli 1.9.0-dev-92-eb0bddb → 1.9.0-dev-93-fe9299d
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.
|
@@ -90,6 +90,13 @@ async function validateConfig(config) {
|
|
|
90
90
|
else {
|
|
91
91
|
throw new Error('Code path not specified');
|
|
92
92
|
}
|
|
93
|
+
if (config.executionCredentials) {
|
|
94
|
+
const restrictedProperties = ['API_HOST', 'API_OAUTH_CONSUMER_KEY', 'API_OAUTH_CONSUMER_SECRET', 'API_OAUTH_TOKEN', 'API_OAUTH_TOKEN_SECRET'];
|
|
95
|
+
const foundProperties = Object.keys(config.environment).filter(key => restrictedProperties.includes(key));
|
|
96
|
+
if (foundProperties.length > 0) {
|
|
97
|
+
throw new Error(`❌ Environment variables [${foundProperties.join(', ')}] may not be provided when using executionCredentials`);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
93
100
|
assertExecutionPermission(config.executionPermission);
|
|
94
101
|
return true;
|
|
95
102
|
}
|