diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 56d8b4c6..696bc625 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -21,6 +21,7 @@ jobs: build: name: Build distribution 📦 runs-on: ubuntu-latest + timeout-minutes: 5 steps: - uses: actions/checkout@v4 @@ -58,7 +59,7 @@ jobs: - aiohttp-version: <4.0.0 python-version: 3.11 fail-fast: false - timeout-minutes: 15 + timeout-minutes: 5 steps: - name: Checkout @@ -111,6 +112,7 @@ jobs: permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write + timeout-minutes: 5 steps: - name: Download distribution 📦 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 28bfaa62..c2aba351 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -7,6 +7,7 @@ on: jobs: pre-commit: runs-on: ubuntu-20.04 + timeout-minutes: 5 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 48b54f38..43754607 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -19,6 +19,7 @@ jobs: permissions: issues: write pull-requests: write + timeout-minutes: 5 steps: - uses: actions/stale@v9 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91cea775..1e325d75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,3 +27,12 @@ repos: - id: check-dependabot - id: check-github-workflows - id: check-readthedocs + - id: check-jsonschema + alias: check-github-workflows-require-timeout + name: Check GitHub Actions workflow jobs set timeout-minutes + args: + - --builtin-schema + - github-workflows-require-timeout + files: ^\.github/workflows/[^/]+$ + types: + - yaml