2020 # passes; "stable" is the toolchain releases are built with, and is where
2121 # lint and govulncheck run (#38).
2222 build :
23+ timeout-minutes : 20
2324 runs-on : ubuntu-latest
2425 permissions :
2526 contents : read
@@ -140,6 +141,7 @@ jobs:
140141 # replacement, signals and paths differ there (#170). The race detector
141142 # runs on Linux, in build.
142143 test-os :
144+ timeout-minutes : 20
143145 runs-on : ${{ matrix.os }}
144146 permissions :
145147 contents : read
@@ -162,6 +164,7 @@ jobs:
162164 # Runs the composite action (action.yml, #126) from this checkout against
163165 # a lab zone on every runner OS: a scan, then a diff against its results.
164166 action :
167+ timeout-minutes : 20
165168 runs-on : ${{ matrix.os }}
166169 permissions :
167170 contents : read
@@ -230,6 +233,7 @@ jobs:
230233 # rather than a lab zone file from this checkout, whose format can be
231234 # newer than the release.
232235 action-release :
236+ timeout-minutes : 15
233237 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
234238 runs-on : ${{ matrix.os }}
235239 permissions :
@@ -260,6 +264,7 @@ jobs:
260264 # Builds the Dockerfile for both published platforms without pushing, so a
261265 # broken image is caught on the PR rather than during a release.
262266 docker :
267+ timeout-minutes : 30
263268 runs-on : ubuntu-latest
264269 permissions :
265270 contents : read
@@ -282,6 +287,7 @@ jobs:
282287 # (no signing, no publishing), so .goreleaser.yaml is exercised long before
283288 # a tag depends on it (#61).
284289 release-snapshot :
290+ timeout-minutes : 30
285291 needs : build
286292 if : ${{ !startsWith(github.ref, 'refs/tags/v') }}
287293 runs-on : ubuntu-latest
@@ -340,6 +346,7 @@ jobs:
340346 # failed draft). It waits for every test job, the macOS and Windows tests
341347 # and the action included, since their binaries and the action ship too.
342348 release :
349+ timeout-minutes : 30
343350 needs : [ build, test-os, action, docker ]
344351 if : startsWith(github.ref, 'refs/tags/v')
345352 runs-on : ubuntu-latest
@@ -423,6 +430,7 @@ jobs:
423430 # (#40). The Dockerfile cross-compiles in a build-platform builder stage, so
424431 # arm64 needs no QEMU. `latest` only moves for non-prerelease tags.
425432 publish-image :
433+ timeout-minutes : 30
426434 needs : release
427435 if : startsWith(github.ref, 'refs/tags/v')
428436 runs-on : ubuntu-latest
@@ -489,6 +497,7 @@ jobs:
489497 # deletes a draft (never a published release) and is a no-op when there is
490498 # nothing to clean, so it is safe and idempotent.
491499 cleanup-failed-release :
500+ timeout-minutes : 5
492501 needs : [release]
493502 if : ${{ failure() && startsWith(github.ref, 'refs/tags/v') }}
494503 runs-on : ubuntu-latest
0 commit comments