From 712730e1310de8c30590c0cacbc704f054756064 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:46:15 +0200 Subject: [PATCH] check for `timeout-minutes` property in all GitHub Actions workflow jobs via pre-commit (#1183) --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) 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