From 7001556c1971bd8035f442beaded8788b9d28886 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Thu, 20 Aug 2026 12:34:33 +0300 Subject: [PATCH] Harden GitHub Actions against hung jobs. Add job timeouts and cancel-in-progress concurrency, and bump checkout to v4 so workflows cannot sit on GitHub-hosted runners until the 6h default limit. Co-authored-by: Cursor --- .github/workflows/angular.yml | 3 ++- .github/workflows/image-compression.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml index 841a0d944d..c8c9b56dd4 100644 --- a/.github/workflows/angular.yml +++ b/.github/workflows/angular.yml @@ -27,8 +27,9 @@ jobs: build-test-lint: if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest + timeout-minutes: 30 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/image-compression.yml b/.github/workflows/image-compression.yml index ed4111cdd3..2f9840227a 100644 --- a/.github/workflows/image-compression.yml +++ b/.github/workflows/image-compression.yml @@ -22,9 +22,10 @@ jobs: if: github.event.pull_request.head.repo.full_name == github.repository && !github.event.pull_request.draft name: calibreapp/image-actions runs-on: ubuntu-latest + timeout-minutes: 15 steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Compress Images uses: calibreapp/image-actions@main