From 4e62b72b5aa8a5ed18feefe6111650d817bf0462 Mon Sep 17 00:00:00 2001 From: codingshot <45281667+codingshot@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:06:43 +0300 Subject: [PATCH] ci: bound Actions runtime and cancel stale PR checks [skip ci] --- .github/workflows/ci-build-fast.yml | 1 + .github/workflows/ci-run.yml | 8 ++++++++ .github/workflows/docker-publish.yml | 1 + .github/workflows/pr-auto-response.yml | 3 +++ .github/workflows/pr-check-stale.yml | 1 + .github/workflows/pr-check-status.yml | 1 + .github/workflows/pr-intake-checks.yml | 1 + .github/workflows/pr-labeler.yml | 1 + .github/workflows/sec-audit.yml | 1 + 9 files changed, 18 insertions(+) diff --git a/.github/workflows/ci-build-fast.yml b/.github/workflows/ci-build-fast.yml index 2c586dc..5c2b7f4 100644 --- a/.github/workflows/ci-build-fast.yml +++ b/.github/workflows/ci-build-fast.yml @@ -24,6 +24,7 @@ env: jobs: changes: + timeout-minutes: 60 name: Detect Change Scope runs-on: [self-hosted, Linux, X64, aws-india, blacksmith-2vcpu-ubuntu-2404, hetzner] outputs: diff --git a/.github/workflows/ci-run.yml b/.github/workflows/ci-run.yml index 4d254d8..2cbd86d 100644 --- a/.github/workflows/ci-run.yml +++ b/.github/workflows/ci-run.yml @@ -23,6 +23,7 @@ env: jobs: changes: + timeout-minutes: 60 name: Detect Change Scope runs-on: [self-hosted, Linux, X64, aws-india, blacksmith-2vcpu-ubuntu-2404, hetzner] outputs: @@ -155,6 +156,7 @@ jobs: retention-days: 14 docs-only: + timeout-minutes: 60 name: Docs-Only Fast Path needs: [changes] if: needs.changes.outputs.docs_only == 'true' @@ -164,6 +166,7 @@ jobs: run: echo "Docs-only change detected. Rust lint/test/build skipped." non-rust: + timeout-minutes: 60 name: Non-Rust Fast Path needs: [changes] if: needs.changes.outputs.docs_only != 'true' && needs.changes.outputs.rust_changed != 'true' @@ -228,6 +231,7 @@ jobs: run: echo "No added links in changed docs lines. Link check skipped." lint-feedback: + timeout-minutes: 60 name: Lint Feedback if: github.event_name == 'pull_request' needs: [changes, lint, docs-quality] @@ -254,6 +258,7 @@ jobs: await script({github, context, core}); workflow-owner-approval: + timeout-minutes: 60 name: Workflow Owner Approval needs: [changes] if: github.event_name == 'pull_request' && needs.changes.outputs.workflow_changed == 'true' @@ -275,6 +280,7 @@ jobs: await script({ github, context, core }); human-review-approval: + timeout-minutes: 60 name: Human Review Approval needs: [changes] if: github.event_name == 'pull_request' @@ -298,6 +304,7 @@ jobs: await script({ github, context, core }); license-file-owner-guard: + timeout-minutes: 60 name: License File Owner Guard needs: [changes] if: github.event_name == 'pull_request' @@ -316,6 +323,7 @@ jobs: const script = require('./.github/workflows/scripts/ci_license_file_owner_guard.js'); await script({ github, context, core }); ci-required: + timeout-minutes: 60 name: CI Required Gate if: always() needs: [changes, lint, test, build, flake-probe, docs-only, non-rust, docs-quality, lint-feedback, workflow-owner-approval, human-review-approval, license-file-owner-guard] diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 8ca2263..3da7cfb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -37,6 +37,7 @@ env: jobs: build-and-push: + timeout-minutes: 60 runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/pr-auto-response.yml b/.github/workflows/pr-auto-response.yml index 086ee12..39a47db 100644 --- a/.github/workflows/pr-auto-response.yml +++ b/.github/workflows/pr-auto-response.yml @@ -17,6 +17,7 @@ env: jobs: contributor-tier-issues: + timeout-minutes: 60 if: >- (github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'labeled' || github.event.action == 'unlabeled')) || @@ -40,6 +41,7 @@ jobs: const script = require('./.github/workflows/scripts/pr_auto_response_contributor_tier.js'); await script({ github, context, core }); first-interaction: + timeout-minutes: 60 if: github.event.action == 'opened' runs-on: [self-hosted, Linux, X64, aws-india, blacksmith-2vcpu-ubuntu-2404, hetzner] permissions: @@ -71,6 +73,7 @@ jobs: See `CONTRIBUTING.md` and `docs/pr-workflow.md` for full collaboration rules. labeled-routes: + timeout-minutes: 60 if: github.event.action == 'labeled' runs-on: [self-hosted, Linux, X64, aws-india, blacksmith-2vcpu-ubuntu-2404, hetzner] permissions: diff --git a/.github/workflows/pr-check-stale.yml b/.github/workflows/pr-check-stale.yml index 7c29077..fbab7be 100644 --- a/.github/workflows/pr-check-stale.yml +++ b/.github/workflows/pr-check-stale.yml @@ -14,6 +14,7 @@ env: jobs: stale: + timeout-minutes: 60 permissions: issues: write pull-requests: write diff --git a/.github/workflows/pr-check-status.yml b/.github/workflows/pr-check-status.yml index 5a2ee96..05ca601 100644 --- a/.github/workflows/pr-check-status.yml +++ b/.github/workflows/pr-check-status.yml @@ -18,6 +18,7 @@ env: jobs: nudge-stale-prs: + timeout-minutes: 60 runs-on: [self-hosted, Linux, X64, aws-india, blacksmith-2vcpu-ubuntu-2404, hetzner] permissions: contents: read diff --git a/.github/workflows/pr-intake-checks.yml b/.github/workflows/pr-intake-checks.yml index 3620e8c..60144ad 100644 --- a/.github/workflows/pr-intake-checks.yml +++ b/.github/workflows/pr-intake-checks.yml @@ -10,6 +10,7 @@ permissions: jobs: pr-intake: + timeout-minutes: 60 runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 791d744..ba490e6 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -10,6 +10,7 @@ permissions: jobs: label: + timeout-minutes: 60 runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/sec-audit.yml b/.github/workflows/sec-audit.yml index b93cf83..886765f 100644 --- a/.github/workflows/sec-audit.yml +++ b/.github/workflows/sec-audit.yml @@ -568,6 +568,7 @@ jobs: retention-days: 14 security-required: + timeout-minutes: 60 name: Security Required Gate if: always() && (github.event_name == 'pull_request' || github.event_name == 'push' || github.event_name == 'merge_group') needs: [audit, deny, security-regressions, secrets, sbom, unsafe-debt]