@ibm-cloud/cd-tools 1.11.4 → 1.11.5
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/cmd/export-secrets.js +3 -3
- package/package.json +1 -1
package/cmd/export-secrets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Licensed Materials - Property of IBM
|
|
3
|
-
* (c) Copyright IBM Corporation 2025. All Rights Reserved.
|
|
3
|
+
* (c) Copyright IBM Corporation 2025, 2026. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Note to U.S. Government Users Restricted Rights:
|
|
6
6
|
* Use, duplication or disclosure restricted by GSA ADP Schedule
|
|
@@ -66,7 +66,7 @@ async function main(options) {
|
|
|
66
66
|
toolchainData = await getToolchain(bearer, toolchainId, region);
|
|
67
67
|
}
|
|
68
68
|
await logger.withSpinner(getToolchainData, `Reading Toolchain`, 'Valid Toolchain found!');
|
|
69
|
-
logger.print(`Name: ${toolchainData.name}\nRegion: ${region}\nResource Group ID: ${toolchainData.resource_group_id}\nURL:https://${CLOUD_PLATFORM}/devops/toolchains/${toolchainId}?env_id=ibm:yp:${region}\n`);
|
|
69
|
+
logger.print(`Name: ${toolchainData.name}\nRegion: ${region}\nResource Group ID: ${toolchainData.resource_group_id}\nURL: https://${CLOUD_PLATFORM}/devops/toolchains/${toolchainId}?env_id=ibm:yp:${region}\n`);
|
|
70
70
|
|
|
71
71
|
// Check for plain-text secrets in all tools
|
|
72
72
|
const exportSecrets = async () => {
|
|
@@ -256,7 +256,7 @@ async function main(options) {
|
|
|
256
256
|
continue;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
const smSecretName = await promptUserInput(`Enter the name of the secret to create [${secretPath}]: `,
|
|
259
|
+
const smSecretName = await promptUserInput(`Enter the name of the secret to create [${secretPath}]: `, secretPath, async (input) => {
|
|
260
260
|
if (input.length < 2 || input.length > 256) {
|
|
261
261
|
throw new Error('The secret name must be between 2 and 256 characters long.');
|
|
262
262
|
}
|