Skip to content

Commit c2a7091

Browse files
committed
ci: add reusable cloud-runner-integrity workflow; wire into Integrity; disable legacy pipeline triggers
1 parent 43c11e7 commit c2a7091

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

dist/index.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/image-environment-factory.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ class ImageEnvironmentFactory {
55
const environmentVariables = ImageEnvironmentFactory.getEnvironmentVariables(parameters, additionalVariables);
66
let string = '';
77
for (const p of environmentVariables) {
8-
if (p.value === '' || p.value === undefined) {
8+
if (p.value === '' || p.value === undefined || p.value === null) {
99
continue;
1010
}
11-
if (p.name !== 'ANDROID_KEYSTORE_BASE64' && p.value.toString().includes(`\n`)) {
11+
const valueAsString = typeof p.value === 'string' ? p.value : String(p.value);
12+
if (p.name !== 'ANDROID_KEYSTORE_BASE64' && valueAsString.includes(`\n`)) {
1213
string += `--env ${p.name} `;
13-
process.env[p.name] = p.value.toString();
14+
process.env[p.name] = valueAsString;
1415
continue;
1516
}
1617

17-
string += `--env ${p.name}="${p.value}" `;
18+
string += `--env ${p.name}="${valueAsString}" `;
1819
}
1920

2021
return string;

0 commit comments

Comments
 (0)