1
0
Fork 0
mirror of https://github.com/imjasonh/gcp-metrics-action synced 2026-07-21 06:17:17 +00:00

try to fix

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-11-05 11:27:47 -05:00
parent 2cba218fb4
commit 887ff13f33
5 changed files with 22 additions and 41 deletions

View file

@ -28,7 +28,6 @@ function getConfig() {
serviceName: core.getInput('service-name') || 'github-actions',
serviceNamespace: core.getInput('service-namespace') || 'ci',
metricPrefix: core.getInput('metric-prefix') || 'github.actions',
exportIntervalMillis: parseInt(core.getInput('export-interval-millis') || '1000', 10),
};
// Validate configuration
@ -36,11 +35,6 @@ function getConfig() {
throw new Error('gcp-project-id is required');
}
if (config.exportIntervalMillis < 1000) {
core.warning('export-interval-millis is too low, setting to 1000ms');
config.exportIntervalMillis = 1000;
}
// Log config without sensitive data
const safeConfig = { ...config, gcpServiceAccountKey: config.gcpServiceAccountKey ? '[REDACTED]' : null };
core.debug(`Configuration: ${JSON.stringify(safeConfig, null, 2)}`);