ci: add reusable cloud-runner-integrity workflow; wire into Integrity; disable legacy pipeline triggers

This commit is contained in:
Frostebite
2025-09-07 04:21:45 +01:00
parent df650638a8
commit 307a2aa562
3 changed files with 47 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ export class TaskParameterSerializer {
...TaskParameterSerializer.serializeInput(),
...TaskParameterSerializer.serializeCloudRunnerOptions(),
...CommandHookService.getSecrets(CommandHookService.getHooks(buildParameters.commandHooks)),
// Include AWS environment variables for LocalStack compatibility
...TaskParameterSerializer.serializeAwsEnvironmentVariables(),
]
.filter(
(x) =>
@@ -91,6 +93,28 @@ export class TaskParameterSerializer {
return TaskParameterSerializer.serializeFromType(CloudRunnerOptions);
}
private static serializeAwsEnvironmentVariables() {
const awsEnvVars = [
'AWS_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY',
'AWS_DEFAULT_REGION',
'AWS_REGION',
'AWS_S3_ENDPOINT',
'AWS_ENDPOINT',
'AWS_CLOUD_FORMATION_ENDPOINT',
'AWS_ECS_ENDPOINT',
'AWS_KINESIS_ENDPOINT',
'AWS_CLOUD_WATCH_LOGS_ENDPOINT',
];
return awsEnvVars
.filter((key) => process.env[key] !== undefined)
.map((key) => ({
name: key,
value: process.env[key] || '',
}));
}
public static ToEnvVarFormat(input: string): string {
return CloudRunnerOptions.ToEnvVarFormat(input);
}