Skip to content

Commit febe080

Browse files
committed
ci: adopt standards reusable workflows for Scorecard, Hypatia, and Governance
1 parent 69d2796 commit febe080

15 files changed

Lines changed: 3296 additions & 123 deletions

File tree

.github/workflows/governance.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
# SPDX-License-Identifier: MPL-2.0
2-
# governance.yml — single wrapper calling the shared estate governance bundle
3-
# in hyperpolymath/standards. Replaces ~8 duplicated per-repo governance
4-
# workflows (verisimiser#59 estate rollout). Load-bearing build/security
5-
# workflows (rust-ci, codeql, dependabot, release, secret-scanner, scorecard)
6-
# stay standalone in this repo.
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
72
name: Governance
3+
84
on:
95
push:
106
branches: [main, master]
117
pull_request:
8+
branches: [main, master]
129
workflow_dispatch:
13-
# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
14-
# updates do not pile up queued runs against the shared account-wide
15-
# Actions concurrency pool. Applied only to read-only check workflows
16-
# (no publish/mutation), so cancelling a superseded run is always safe.
17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
19-
cancel-in-progress: true
10+
2011
permissions:
2112
contents: read
13+
2214
jobs:
2315
governance:
24-
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@main
16+
uses: hyperpolymath/standards/.github/workflows/governance-reusable.yml@5a93d9da1bbf6ca9eb4eec89e900c733f114c995

.github/workflows/hypatia-scan.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
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
3+
64
on:
75
push:
86
branches: [main, master, develop]
@@ -11,15 +9,11 @@ on:
119
schedule:
1210
- cron: '0 0 * * 0'
1311
workflow_dispatch:
14-
# Estate guardrail: cancel superseded runs so re-pushes don't pile up.
15-
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
17-
cancel-in-progress: true
12+
1813
permissions:
1914
contents: read
20-
security-events: write
21-
pull-requests: write
15+
security-events: read
16+
2217
jobs:
23-
hypatia:
24-
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@5eb28d7d8790d5389b7b6a5233fe6265a775e3d0
25-
secrets: inherit
18+
scan:
19+
uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@5a93d9da1bbf6ca9eb4eec89e900c733f114c995

.github/workflows/scorecard-enforcer.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/scorecard.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
1-
# SPDX-License-Identifier: MPL-2.0
2-
name: Scorecards supply-chain security
1+
# SPDX-License-Identifier: PMPL-1.0-or-later
2+
name: OSSF Scorecard
3+
34
on:
4-
branch_protection_rule:
5-
schedule:
6-
- cron: '23 4 * * 1'
75
push:
8-
branches: [main]
9-
# Workflow-level permissions are read-only. The job that calls the
10-
# reusable upgrades to the writes required by `ossf/scorecard-action`.
11-
# Job-level permissions REPLACE workflow-level for the job, so a bare
12-
# `permissions: read-all` at workflow level + writes at job level is
13-
# equivalent to `contents: read` at workflow level — both yield the
14-
# same effective set at the job. We match the canonical caller in
15-
# `hyperpolymath/standards/.github/workflows/scorecard-reusable.yml`
16-
# (and the known-good sibling julia-professional-registry/scorecard.yml)
17-
# to eliminate the prior `read-all` / `contents: read` divergence as a
18-
# possible cause of the persistent `startup_failure` (every run since
19-
# adoption — see PR #457's test-plan delta).
6+
branches: [main, master]
7+
schedule:
8+
- cron: '0 4 * * *'
9+
workflow_dispatch:
10+
2011
permissions:
2112
contents: read
13+
2214
jobs:
23-
analysis:
24-
permissions:
25-
security-events: write
26-
id-token: write
27-
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@e03686486e11b662834d7090dffae54c3e96fd59
28-
secrets: inherit
15+
scorecard:
16+
uses: hyperpolymath/standards/.github/workflows/scorecard-reusable.yml@5a93d9da1bbf6ca9eb4eec89e900c733f114c995

0 commit comments

Comments
 (0)