mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
Potential fix for code scanning alert no. 31: Incomplete string escaping or encoding (#479)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -461,7 +461,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
|
|||||||
cron = cron.replace("* *", "0 0");
|
cron = cron.replace("* *", "0 0");
|
||||||
}
|
}
|
||||||
if (cron.startsWith("*")) {
|
if (cron.startsWith("*")) {
|
||||||
cron = cron.replace("*", "0");
|
cron = cron.replace(/\*/g, "0");
|
||||||
}
|
}
|
||||||
const triggerId = trigger.id;
|
const triggerId = trigger.id;
|
||||||
const name = this.buildCronKey(pipelineId, triggerId);
|
const name = this.buildCronKey(pipelineId, triggerId);
|
||||||
|
|||||||
Reference in New Issue
Block a user