Skip to content

Commit c4e8236

Browse files
committed
ci: adopt standards reusable workflows for Scorecard, Hypatia, and Governance
1 parent 49e474b commit c4e8236

3 files changed

Lines changed: 13 additions & 48 deletions

File tree

.github/workflows/governance.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
# SPDX-License-Identifier: MPL-2.0
2-
# governance.yml — single wrapper calling the shared estate governance bundle
3-
# in hyperpolymath/standards instead of carrying per-repo copies.
4-
#
5-
# Replaces the per-repo governance scaffolding removed in this PR:
6-
# quality.yml, guix-nix-policy.yml, npm-bun-blocker.yml, ts-blocker.yml,
7-
# security-policy.yml, rsr-antipattern.yml, wellknown-enforcement.yml,
8-
# workflow-linter.yml
9-
#
10-
# Load-bearing build/security workflows stay standalone in the repo.
11-
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
122
name: Governance
133

144
on:
155
push:
166
branches: [main, master]
177
pull_request:
8+
branches: [main, master]
189
workflow_dispatch:
1910

2011
permissions:
2112
contents: read
2213

2314
jobs:
2415
governance:
25-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@bf406d6f95c5212c34c30f6629be93d08c076339 # main 2026-06-01 (R5b version-string drift — standards#329)
16+
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@b89b2ef1e98928fce53a85e83c37f23a1d99f6d3

.github/workflows/hypatia-scan.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# SPDX-License-Identifier: MPL-2.0
2-
# Thin wrapper around hyperpolymath/standards hypatia-scan-reusable.yml.
3-
# See standards#191 for the reusable's purpose and design.
4-
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
52
name: Hypatia Security Scan
63

74
on:
@@ -13,17 +10,10 @@ on:
1310
- cron: '0 0 * * 0'
1411
workflow_dispatch:
1512

16-
# Estate guardrail: cancel superseded runs so re-pushes don't pile up.
17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
19-
cancel-in-progress: true
20-
2113
permissions:
2214
contents: read
23-
security-events: write
24-
pull-requests: write
15+
security-events: read
2516

2617
jobs:
27-
hypatia:
28-
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@5eb28d7d8790d5389b7b6a5233fe6265a775e3d0
29-
secrets: inherit
18+
scan:
19+
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@b89b2ef1e98928fce53a85e83c37f23a1d99f6d3

.github/workflows/scorecard.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,16 @@
1-
# SPDX-License-Identifier: MPL-2.0
2-
# Aligned with the documented caller pattern in
3-
# hyperpolymath/standards .github/workflows/scorecard-reusable.yml.
4-
# Previously this workflow was startup_failure-on-every-run (50/50)
5-
# because it diverged from the reusable's documented caller shape:
6-
# - missing `concurrency:` group (re-pushes piled up superseded runs)
7-
# - `branch_protection_rule:` trigger (unused; complicates startup)
8-
# - `secrets: inherit` against a reusable with no `secrets:` block
9-
# - `permissions: read-all` instead of explicit `contents: read`
10-
# Pattern now matches the reusable's header example verbatim.
11-
name: Scorecards supply-chain security
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
name: OSSF Scorecard
123

134
on:
145
push:
15-
branches: [main]
6+
branches: [main, master]
167
schedule:
17-
- cron: '23 4 * * 1'
8+
- cron: '0 4 * * *'
189
workflow_dispatch:
1910

20-
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref }}
22-
cancel-in-progress: true
23-
2411
permissions:
2512
contents: read
2613

2714
jobs:
28-
analysis:
29-
permissions:
30-
security-events: write
31-
id-token: write
32-
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@e0caf11508a3989574713c78f5f444f2ce5e33ef
15+
scorecard:
16+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@b89b2ef1e98928fce53a85e83c37f23a1d99f6d3

0 commit comments

Comments
 (0)