From c155bf07fcca8af0cb0456b704c66777c6633607 Mon Sep 17 00:00:00 2001 From: PN Scripts Date: Sun, 8 Nov 2026 23:08:45 +0200 Subject: [PATCH] CI: timeout per job, checkout without a stored token Every job stops after 10 minutes (runs take under 40 seconds), not after GitHub's default 6 hours, and actions/checkout keeps no token in .git/config because no job pushes. Actions stay pinned to commit hashes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf37024..b40efad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,14 @@ concurrency: jobs: test: runs-on: ubuntu-latest + # A hung step (network, installer) stops here, not after GitHub's 6 hours. + timeout-minutes: 10 steps: # Actions are pinned to commit hashes, so a moved tag cannot change what runs here. - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + # Nothing here pushes, so the token is not kept in .git/config. + persist-credentials: false # The newest 1.26 patch release, as the release workflow builds with, # so the standard library carries every published fix. - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0