We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 515e67e commit afdd211Copy full SHA for afdd211
tests/legacy-cli/e2e/setup/300-log-environment.ts
@@ -4,6 +4,12 @@ export default async function() {
4
console.log('Environment:');
5
6
Object.keys(process.env).forEach(envName => {
7
+ // CI Logs should not contain environment variables that are considered secret
8
+ const lowerName = envName.toLowerCase();
9
+ if (lowerName.includes('key') || lowerName.includes('secret')) {
10
+ return;
11
+ }
12
+
13
console.log(` ${envName}: ${process.env[envName].replace(/[\n\r]+/g, '\n ')}`);
14
});
15
0 commit comments