ci: fix ignored and missing job-level timeout-minutes#3355
ci: fix ignored and missing job-level timeout-minutes#3355arkid15r merged 4 commits intoOWASP:mainfrom
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughReduced or added Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
arkid15r
left a comment
There was a problem hiding this comment.
I explained it to you in your previous PR how we want the attributes sorted.
|
I misunderstood it earlier, but I’ve now updated the workflow as requested. |
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/run-code-ql.yaml:
- Line 61: The workflow timeout is set too low—update the CodeQL job's
timeout-minutes setting (the YAML key "timeout-minutes") from 5 to at least 360
(or minimum 120 for optimized cases) so the CodeQL analysis has enough time to
complete; locate the "timeout-minutes" entry in the run-code-ql.yaml workflow
and change its value accordingly.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
.github/workflows/check-pr-issue.yaml.github/workflows/label-issues.yaml.github/workflows/label-pull-requests.yaml.github/workflows/run-ci-cd.yaml.github/workflows/run-code-ql.yaml.github/workflows/update-nest-test-images.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/run-ci-cd.yaml
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-21T19:03:59.068Z
Learnt from: ahmedxgouda
Repo: OWASP/Nest PR: 1139
File: .github/workflows/setup-backend-environment/action.yaml:16-27
Timestamp: 2025-12-21T19:03:59.068Z
Learning: Composite actions (runs: using: composite) execute as steps within the calling job's context and can access the job context, including job.services.* properties (e.g., job.services.<service_id>.id, job.services.<service_id>.ports). Service containers must be defined at the job level, but a composite action's steps can reference them via the job context.
Applied to files:
.github/workflows/label-pull-requests.yaml.github/workflows/update-nest-test-images.yaml.github/workflows/label-issues.yaml.github/workflows/run-code-ql.yaml.github/workflows/check-pr-issue.yaml
🔇 Additional comments (4)
.github/workflows/label-issues.yaml (1)
45-45: LGTM!The
timeout-minutes: 5is correctly placed at the job level and is appropriate for this lightweight labeling operation..github/workflows/label-pull-requests.yaml (1)
19-19: LGTM!The
timeout-minutes: 5is correctly placed at the job level and is appropriate for this lightweight labeling operation..github/workflows/update-nest-test-images.yaml (1)
77-77: LGTM!The
timeout-minutes: 15is correctly placed at the job level. This should be sufficient for building three Docker images with the configured cache layers. If you observe timeouts during cache misses, consider increasing to 20–25 minutes..github/workflows/check-pr-issue.yaml (1)
32-32: LGTM!The
timeout-minutes: 5is correctly placed at the job level and is appropriate for this PR validation workflow.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.



Proposed change
Resolves #3279
This PR fixes incorrectly defined and missing
timeout-minutessettings in therun-ci-cd.yamlworkflow.What was fixed
timeout-minutesdefinitions to the job level, where GitHub Actions enforces them correctlyWhat was NOT changed
This change strictly improves CI reliability by ensuring stuck or runaway jobs are terminated instead of running until GitHub Actions’ default limit.
Checklist
make check-testlocally and all checks passed