()
| 20 | } |
| 21 | |
| 22 | function getRepoProtectionConfig() { |
| 23 | return { |
| 24 | cooldownMs: parsePositiveInt(process.env.BUNDLE_TRIGGER_REPO_COOLDOWN_MS, DEFAULT_REPO_COOLDOWN_MS), |
| 25 | activeJobTtlMs: parsePositiveInt(process.env.BUNDLE_TRIGGER_ACTIVE_JOB_TTL_MS, DEFAULT_ACTIVE_JOB_TTL_MS), |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | function getClientIp(req) { |
| 30 | const forwardedFor = req?.headers?.["x-forwarded-for"]; |
no test coverage detected