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:
parent
2cba218fb4
commit
887ff13f33
5 changed files with 22 additions and 41 deletions
|
|
@ -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)}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue