From 11fca8da28dae4c8b13f868ef2ccdb3028cef818 Mon Sep 17 00:00:00 2001 From: michael-siek Date: Wed, 22 Nov 2023 09:16:17 -0500 Subject: [PATCH] ci: add timeouts for each GHA workflow --- .github/workflows/auto-patch-release.yml | 1 + .github/workflows/create-release-candidate.yml | 1 + .github/workflows/create-release.yml | 1 + .github/workflows/deploy.yml | 1 + .github/workflows/semantic-pr-title.yml | 1 + .github/workflows/sync-master-develop.yml | 1 + .github/workflows/update-axe-core.yml | 1 + 7 files changed, 7 insertions(+) diff --git a/.github/workflows/auto-patch-release.yml b/.github/workflows/auto-patch-release.yml index 7b98460f..dbd8ea42 100644 --- a/.github/workflows/auto-patch-release.yml +++ b/.github/workflows/auto-patch-release.yml @@ -5,6 +5,7 @@ jobs: create_patch_release: name: Create release runs-on: ubuntu-latest + timeout-minutes: 3 steps: - name: Determine if we skip cancel checks id: skip-checks diff --git a/.github/workflows/create-release-candidate.yml b/.github/workflows/create-release-candidate.yml index 3641dd64..421501aa 100644 --- a/.github/workflows/create-release-candidate.yml +++ b/.github/workflows/create-release-candidate.yml @@ -10,6 +10,7 @@ on: jobs: create-release-candidate: + timeout-minutes: 2 runs-on: ubuntu-latest steps: - uses: dequelabs/axe-api-team-public/.github/actions/create-release-candidate-v1@main diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index a3f9a32c..0c786637 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -12,6 +12,7 @@ jobs: create_release: name: Create release runs-on: ubuntu-latest + timeout-minutes: 3 steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2f865464..6b95cb1e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,6 +10,7 @@ on: jobs: canary: runs-on: ubuntu-latest + timeout-minutes: 10 if: github.ref_name == 'develop' && github.repository_owner == 'dequelabs' steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index 181cd239..042da6fa 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -10,6 +10,7 @@ on: jobs: semantic-pr-title: + timeout-minutes: 1 runs-on: ubuntu-latest steps: - uses: dequelabs/semantic-pr-title@v1 diff --git a/.github/workflows/sync-master-develop.yml b/.github/workflows/sync-master-develop.yml index 12ad7cd9..974d95d2 100644 --- a/.github/workflows/sync-master-develop.yml +++ b/.github/workflows/sync-master-develop.yml @@ -8,6 +8,7 @@ on: jobs: create_sync_pull_request: runs-on: ubuntu-latest + timeout-minutes: 2 steps: - uses: dequelabs/action-sync-branches@v1 with: diff --git a/.github/workflows/update-axe-core.yml b/.github/workflows/update-axe-core.yml index 94765888..c74097b8 100644 --- a/.github/workflows/update-axe-core.yml +++ b/.github/workflows/update-axe-core.yml @@ -9,6 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 1 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4