Skip to content

Commit 56f433b

Browse files
committed
ci: add timeout-minutes to standalone workflow jobs
Addresses the Hypatia workflow-audit `missing_timeout_minutes` findings on the jobs that can carry a job-level timeout: - casket-pages.yml: build (15m), deploy (10m) - codeql.yml: analyze (30m) - hypatia-scan.yml: scan (20m) The reusable-workflow callers (governance.yml, mirror.yml, scorecard.yml) are intentionally left untouched: GitHub does not permit `timeout-minutes` on a job that uses `uses:`. governance.yml's `@main` reference is also left as-is — mirror/scorecard are SHA-pinned but governance is deliberately kept on main by the maintainer.
1 parent 6f43dc7 commit 56f433b

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/casket-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818
jobs:
1919
build:
2020
runs-on: ubuntu-latest
21+
timeout-minutes: 15
2122
steps:
2223
- name: Checkout
2324
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -91,6 +92,7 @@ jobs:
9192
name: github-pages
9293
url: ${{ steps.deployment.outputs.page_url }}
9394
runs-on: ubuntu-latest
95+
timeout-minutes: 10
9496
needs: build
9597
steps:
9698
- name: Deploy to GitHub Pages

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
analyze:
1616
name: CodeQL Analysis
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 30
1819
permissions:
1920
security-events: write
2021
contents: read

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
scan:
4444
name: Hypatia Neurosymbolic Analysis
4545
runs-on: ubuntu-latest
46+
timeout-minutes: 20
4647

4748
steps:
4849
- name: Checkout repository

0 commit comments

Comments
 (0)