Skip to content

Commit 368e7cd

Browse files
fix(ci): unbreak workflow YAML and add a complete actions.lock (#80)
Remediates **GitHub Workflow Dependency Locking** (public preview, no changelog entry), which rejects runs at `startup_failure` — zero jobs, no logs, nothing in REST or GraphQL. Full analysis: `metadatastician/standards#657`. **Proven on `hyperpolymath/anamnesis`: 6 of 6 workflows dead → 0 `startup_failure`, 13 running.** ### Five steps, in order — each blocks the next **1. Unbreak the workflow YAML.** Any `permissions:` carrying a scalar with an indented mapping under it: ```yaml permissions: read-all actions: read # <- mapping under a scalar. Unparseable. ``` This reaches past the one file: **`gh actions-lock` refuses to run when *any* workflow in the repo fails to parse**, so the repo can never acquire a lockfile and can never self-heal. **2. Repin `standards` reusables** off commits with no `actions.lock`. The rejection requires the **callee** to be covered *at the pinned SHA* — unsatisfiable at a pre-lockfile commit. **3. Generate** the lockfile with `gh actions-lock`. **4. Hand-add the reusable-caller entries the tool omits**, as `'<path>': []`. ⚠️ Measured across 218 repos: `P(startup_failure | has lockfile) = 91.7%` vs `15.8%` without — because every workflow a lockfile **omits** is rejected. **A partial lock is worse than none.** Running `gh actions-lock` and stopping there is how this outage spread. **5. Restore `SPDX-License-Identifier` to line 1**, which the tool displaces with its own banner and which the workflow-security linter greps via `head -1`. ### Verified before this PR was opened `0` unparseable workflows · lockfile covers **every** workflow, no omissions · SPDX on line 1 in **every** file. The script refuses to push if any of the three fails. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 4ccec23 commit 368e7cd

13 files changed

Lines changed: 40 additions & 19 deletions

‎.github/workflows/actions.lock‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
# Docs: https://gh.io/actions-lockfile
44
version: 'v0.0.2'
55
workflows:
6+
'.github/workflows/governance.yml': []
7+
'.github/workflows/hypatia-scan.yml': []
8+
'.github/workflows/mirror.yml': []
9+
'.github/workflows/scorecard.yml': []
10+
'.github/workflows/secret-scanner.yml': []
611
'.github/workflows/boj-build.yml':
712
- 'actions/checkout@v7.0.1'
813
'.github/workflows/casket-pages.yml':
@@ -11,10 +16,10 @@ workflows:
1116
- 'actions/configure-pages@v6.0.0'
1217
- 'actions/deploy-pages@v5.0.0'
1318
- 'actions/upload-pages-artifact@v5.0.0'
14-
- 'haskell-actions/setup@v2.11.0'
19+
- 'haskell-actions/setup@v2.12.0'
1520
'.github/workflows/codeql.yml':
1621
- 'actions/checkout@v7.0.1'
17-
- 'github/codeql-action@v4.37.3'
22+
- 'github/codeql-action@v4.37.7'
1823
'.github/workflows/dogfood-gate.yml':
1924
- 'actions/checkout@v7.0.1'
2025
'.github/workflows/placement-guard.yml':
@@ -24,7 +29,7 @@ workflows:
2429
'.github/workflows/verify-tlaplus.yml':
2530
- 'actions/cache@v6.1.0'
2631
- 'actions/checkout@v7.0.1'
27-
- 'actions/setup-java@v5.6.0'
32+
- 'actions/setup-java@v5.7.0'
2833
- 'actions/upload-artifact@v7.0.1'
2934
dependencies:
3035
'actions/cache@v6.1.0':
@@ -47,9 +52,9 @@ dependencies:
4752
commit: 'sha1-cd2ce8fcbc39b97be8ca5fce6e763baed58fa128'
4853
owner_id: 44036562
4954
repo_id: 438112499
50-
'actions/setup-java@v5.6.0':
51-
ref: 'v5.6.0'
52-
commit: 'sha1-03ad4de0992f5dab5e18fcb136590ce7c4a0ac95'
55+
'actions/setup-java@v5.7.0':
56+
ref: 'v5.7.0'
57+
commit: 'sha1-b6effb05e454b25005698d916606bdc6ffcbf961'
5358
owner_id: 44036562
5459
repo_id: 196057608
5560
'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f':
@@ -71,16 +76,16 @@ dependencies:
7176
- 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
7277
'dawidd6/action-send-mail@v3.12.0':
7378
ref: 'v3.12.0'
74-
commit: 'sha1-12335b969ae3fb71bee5f2c6b829744261aec34c'
79+
commit: 'sha1-94de994a9f6fffee200243214e17002e2920bb59'
7580
owner_id: 9713907
7681
repo_id: 222439721
77-
'github/codeql-action@v4.37.3':
78-
ref: 'v4.37.3'
79-
commit: 'sha1-e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81'
82+
'github/codeql-action@v4.37.7':
83+
ref: 'v4.37.7'
84+
commit: 'sha1-ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd'
8085
owner_id: 9919
8186
repo_id: 259445878
82-
'haskell-actions/setup@v2.11.0':
83-
ref: 'v2.11.0'
84-
commit: 'sha1-cd0d9bdd65b20557f41bea4dbe43d0b5fbbfe553'
87+
'haskell-actions/setup@v2.12.0':
88+
ref: 'v2.12.0'
89+
commit: 'sha1-6037f33647c3f17758a2356c80fc4a53d7e0685d'
8590
owner_id: 75048950
8691
repo_id: 623796603

‎.github/workflows/boj-build.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
#
45
# OPTIONAL: BoJ Server Build Trigger
56
# This workflow notifies a BoJ Server instance when code is pushed.

‎.github/workflows/casket-pages.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
name: GitHub Pages
45

56
on:

‎.github/workflows/codeql.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
name: CodeQL Security Analysis
45

56
on:

‎.github/workflows/dogfood-gate.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
45
#
56
# dogfood-gate.yml — Hyperpolymath Dogfooding Quality Gate

‎.github/workflows/governance.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
# governance.yml — single wrapper calling the shared estate governance bundle
45
# in hyperpolymath/standards instead of carrying per-repo copies.
56
#
@@ -28,8 +29,9 @@ concurrency:
2829
cancel-in-progress: true
2930

3031
permissions:
32+
actions: read
3133
contents: read
3234

3335
jobs:
3436
governance:
35-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
37+
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a

‎.github/workflows/hypatia-scan.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
# Thin wrapper around hyperpolymath/standards hypatia-scan-reusable.yml.
45
# See standards#191 for the reusable's purpose and design.
56

@@ -20,11 +21,12 @@ concurrency:
2021
cancel-in-progress: true
2122

2223
permissions:
24+
actions: read
2325
contents: read
2426
security-events: write
2527
pull-requests: write
2628

2729
jobs:
2830
hypatia:
29-
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@81dbf2dd854b1444fd6236fa2352474383b2c2b9
31+
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a
3032
secrets: inherit

‎.github/workflows/mirror.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
name: Mirror to Git Forges
45

56
on:
@@ -8,9 +9,10 @@ on:
89
workflow_dispatch:
910

1011
permissions:
12+
actions: read
1113
contents: read
1214

1315
jobs:
1416
mirror:
15-
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@d135b05bfc647d0c0fbfedc7e80f37ea50f49236
17+
uses: hyperpolymath/standards/.github/workflows/mirror-reusable.yml@84355587cb2a1f86e6882de83514a32db2646e7a
1618
secrets: inherit

‎.github/workflows/placement-guard.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
45
#
56
# placement-guard.yml — Coordination-repo content placement guard.

‎.github/workflows/push-email-notify.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: MPL-2.0
22
# This workflow is managed by gh actions-lock.
3+
# This workflow is managed by gh actions-lock.
34
# Dormant push-email notification. ARMED by setting the repo variable
45
# PUSH_EMAIL_ENABLED=true (the single on/off switch). Addresses are pre-filled;
56
# sending needs the org SMTP secrets (SMTP_HOST/PORT/USER/PASS). Inherited by
@@ -16,7 +17,7 @@ jobs:
1617
runs-on: ubuntu-latest
1718
steps:
1819
- name: Send push notification email
19-
uses: dawidd6/action-send-mail@v18
20+
uses: dawidd6/action-send-mail@v3.12.0
2021
with:
2122
server_address: ${{ secrets.SMTP_HOST }}
2223
server_port: ${{ secrets.SMTP_PORT }}

0 commit comments

Comments
 (0)