From a195f3ad726103af49010e70921eb5e2b1d4b9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Sun, 1 Nov 2026 08:31:32 +0000 Subject: [PATCH] ci: add CI workflow; fix lint so it can gate merges - .github/workflows/ci.yml: bun install + lint + typecheck + test + build on pushes to main and all PRs. The org's dependabot auto-merge relies on repo CI to vouch for updates; this repo had a full vitest suite that never ran. - biome migrate: the lockfile resolves biome 2.6.2 but biome.json used the 2.4.5 schema, so 'bun run lint' failed before checking any file. - Apply the resulting format/organize-imports fixes and replace three 'while ((m = re.exec(...)))' loops with for...of matchAll to clear noAssignInExpressions. Closes #12 --- .github/workflows/ci.yml | 36 ++++++ README.md | 80 ++++++------- __tests__/checks/fuzzing.test.ts | 4 +- __tests__/checks/pinned-dependencies.test.ts | 8 +- __tests__/checks/sast.test.ts | 4 +- biome.json | 4 +- src/checks/code-review.ts | 23 ++-- src/checks/packaging.ts | 6 +- src/checks/pinned-dependencies.ts | 15 +-- src/checks/vulnerabilities.ts | 7 +- src/scorecard.ts | 115 +++++++++++-------- 11 files changed, 176 insertions(+), 126 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cde7fc1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Lint + run: bun run lint + + - name: Typecheck + run: bun run typecheck + + - name: Test + run: bun run test + + - name: Build + run: bun run build diff --git a/README.md b/README.md index 6b9adb0..dc5b9e7 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ npm install @happyhackingspace/scorecard import { computeScorecard } from "@happyhackingspace/scorecard"; const result = await computeScorecard("owner", "repo", { - token: "ghp_...", + token: "ghp_...", }); // → { score: 7.6, date: "2026-03-03", repo: "owner/repo", checks: [...] } ``` @@ -27,8 +27,8 @@ const result = await computeScorecard("owner", "repo", { ```typescript const result = await computeScorecard("owner", "repo", { - token: "ghp_...", - checks: ["Maintained", "License"], + token: "ghp_...", + checks: ["Maintained", "License"], }); ``` @@ -36,8 +36,8 @@ const result = await computeScorecard("owner", "repo", { ```typescript const result = await computeScorecard("owner", "repo", { - token: "ghp_...", - fetch: customFetch, + token: "ghp_...", + fetch: customFetch, }); ``` @@ -49,54 +49,54 @@ Returns `Promise`. #### Options -| Option | Type | Required | Description | -|--------|------|----------|-------------| -| `token` | `string` | Yes | GitHub personal access token | -| `checks` | `string[]` | No | Run only specific checks | -| `fetch` | `typeof fetch` | No | Custom fetch implementation | +| Option | Type | Required | Description | +| -------- | -------------- | -------- | ---------------------------- | +| `token` | `string` | Yes | GitHub personal access token | +| `checks` | `string[]` | No | Run only specific checks | +| `fetch` | `typeof fetch` | No | Custom fetch implementation | #### Result ```typescript interface ScorecardResult { - date: string; - repo: string; - score: number; - checks: ScorecardCheck[]; + date: string; + repo: string; + score: number; + checks: ScorecardCheck[]; } interface ScorecardCheck { - name: string; - score: number; // 0-10, or -1 (inconclusive) - reason: string; - details?: string[]; + name: string; + score: number; // 0-10, or -1 (inconclusive) + reason: string; + details?: string[]; } ``` ## Checks -| Check | Risk | Weight | Description | -|-------|------|--------|-------------| -| Maintained | High | 7.5 | Recent commit and issue activity | -| Dependency-Update-Tool | High | 7.5 | Dependabot or Renovate configured | -| Binary-Artifacts | High | 7.5 | No binary files in repository | -| Branch-Protection | High | 7.5 | Branch protection rules enabled | -| CI-Tests | Low | 2.5 | CI checks on recent commits | -| CII-Best-Practices | Low | 2.5 | CII Best Practices badge level | -| Code-Review | High | 7.5 | Changes reviewed before merge | -| Contributors | Low | 2.5 | Multi-org contributor diversity | -| Fuzzing | Medium | 5 | Fuzzing infrastructure detected | -| Packaging | Medium | 5 | Publishing workflows present | -| Pinned-Dependencies | Medium | 5 | Dependencies pinned to SHA | -| SAST | Medium | 5 | Static analysis tools configured | -| SBOM | Medium | 5 | Software bill of materials present | -| Security-Policy | Medium | 5 | SECURITY.md with disclosure info | -| Signed-Releases | High | 7.5 | Release signatures or SLSA provenance | -| Token-Permissions | High | 7.5 | Least-privilege workflow permissions | -| Vulnerabilities | High | 7.5 | Open vulnerability alert count | -| Dangerous-Workflow | Critical | 10 | No script injection or unsafe triggers | -| License | Low | 2.5 | OSI-approved license present | -| Webhooks | Critical | 10 | Webhook secrets configured | +| Check | Risk | Weight | Description | +| ---------------------- | -------- | ------ | -------------------------------------- | +| Maintained | High | 7.5 | Recent commit and issue activity | +| Dependency-Update-Tool | High | 7.5 | Dependabot or Renovate configured | +| Binary-Artifacts | High | 7.5 | No binary files in repository | +| Branch-Protection | High | 7.5 | Branch protection rules enabled | +| CI-Tests | Low | 2.5 | CI checks on recent commits | +| CII-Best-Practices | Low | 2.5 | CII Best Practices badge level | +| Code-Review | High | 7.5 | Changes reviewed before merge | +| Contributors | Low | 2.5 | Multi-org contributor diversity | +| Fuzzing | Medium | 5 | Fuzzing infrastructure detected | +| Packaging | Medium | 5 | Publishing workflows present | +| Pinned-Dependencies | Medium | 5 | Dependencies pinned to SHA | +| SAST | Medium | 5 | Static analysis tools configured | +| SBOM | Medium | 5 | Software bill of materials present | +| Security-Policy | Medium | 5 | SECURITY.md with disclosure info | +| Signed-Releases | High | 7.5 | Release signatures or SLSA provenance | +| Token-Permissions | High | 7.5 | Least-privilege workflow permissions | +| Vulnerabilities | High | 7.5 | Open vulnerability alert count | +| Dangerous-Workflow | Critical | 10 | No script injection or unsafe triggers | +| License | Low | 2.5 | OSI-approved license present | +| Webhooks | Critical | 10 | Webhook secrets configured | ## Scoring diff --git a/__tests__/checks/fuzzing.test.ts b/__tests__/checks/fuzzing.test.ts index 2bd252f..e19be6d 100644 --- a/__tests__/checks/fuzzing.test.ts +++ b/__tests__/checks/fuzzing.test.ts @@ -42,7 +42,9 @@ describe("fuzzing", () => { }); it("returns 0 for generic fuzz substring in tree files", () => { - const result = fuzzing(makeRepoData({ treeFiles: ["pkg/fuzz/helpers.go", "tests/fuzz_test.go"] })); + const result = fuzzing( + makeRepoData({ treeFiles: ["pkg/fuzz/helpers.go", "tests/fuzz_test.go"] }), + ); expect(result.score).toBe(0); }); diff --git a/__tests__/checks/pinned-dependencies.test.ts b/__tests__/checks/pinned-dependencies.test.ts index 715d2f9..94f934f 100644 --- a/__tests__/checks/pinned-dependencies.test.ts +++ b/__tests__/checks/pinned-dependencies.test.ts @@ -28,10 +28,7 @@ describe("pinnedDependencies", () => { workflowFiles: [ { path: ".github/workflows/ci.yml", - content: [ - "uses: actions/checkout@v4", - "uses: actions/setup-node@v4", - ].join("\n"), + content: ["uses: actions/checkout@v4", "uses: actions/setup-node@v4"].join("\n"), }, ], }), @@ -236,8 +233,7 @@ describe("pinnedDependencies", () => { workflowFiles: [ { path: ".github/workflows/ci.yml", - content: - "uses: actions/checkout@A5AC7E51B41094C92402DA3B24376905380AFC29A5AC7E51", + content: "uses: actions/checkout@A5AC7E51B41094C92402DA3B24376905380AFC29A5AC7E51", }, ], }), diff --git a/__tests__/checks/sast.test.ts b/__tests__/checks/sast.test.ts index 102d6cf..b713303 100644 --- a/__tests__/checks/sast.test.ts +++ b/__tests__/checks/sast.test.ts @@ -59,9 +59,7 @@ describe("sast", () => { content: "uses: github/codeql-action/analyze@v3", }, ], - mergedPRSASTResults: [ - { sha: "abc123", hasSASTCheck: true }, - ], + mergedPRSASTResults: [{ sha: "abc123", hasSASTCheck: true }], }), ); expect(result.score).toBe(10); diff --git a/biome.json b/biome.json index 18b60b5..0302ec7 100644 --- a/biome.json +++ b/biome.json @@ -1,10 +1,10 @@ { - "$schema": "https://biomejs.dev/schemas/2.4.5/schema.json", + "$schema": "https://biomejs.dev/schemas/2.6.2/schema.json", "assist": { "actions": { "source": { "organizeImports": "on" } } }, "linter": { "enabled": true, "rules": { - "recommended": true, + "preset": "recommended", "complexity": { "noForEach": "warn" }, diff --git a/src/checks/code-review.ts b/src/checks/code-review.ts index 18467e6..f29800b 100644 --- a/src/checks/code-review.ts +++ b/src/checks/code-review.ts @@ -4,7 +4,9 @@ const BOT_SUFFIXES = ["[bot]", "-bot", "_bot"]; const isBot = (login: string): boolean => { const lower = login.toLowerCase(); - return BOT_SUFFIXES.some((s) => lower.endsWith(s)) || lower === "dependabot" || lower === "renovate"; + return ( + BOT_SUFFIXES.some((s) => lower.endsWith(s)) || lower === "dependabot" || lower === "renovate" + ); }; // OSSF detects review platforms from commit messages and PR labels @@ -13,17 +15,16 @@ const PHABRICATOR_PATTERN = /Differential Revision:\s*.*D\d+/; const PIPER_PATTERN = /PiperOrigin-RevId:\s*\d+/; const PROW_LABELS = ["lgtm", "approved"]; -const isExternallyReviewed = ( - message: string, - labels: string[], -): boolean => { +const isExternallyReviewed = (message: string, labels: string[]): boolean => { // Prow: PR has lgtm and approved labels const lowerLabels = labels.map((l) => l.toLowerCase()); if (PROW_LABELS.every((pl) => lowerLabels.includes(pl))) { return true; } // Gerrit, Phabricator, Piper: detected from commit message - return GERRIT_PATTERN.test(message) || PHABRICATOR_PATTERN.test(message) || PIPER_PATTERN.test(message); + return ( + GERRIT_PATTERN.test(message) || PHABRICATOR_PATTERN.test(message) || PIPER_PATTERN.test(message) + ); }; export const codeReview = (data: RepoData): CheckResult => { @@ -39,10 +40,7 @@ export const codeReview = (data: RepoData): CheckResult => { const botAuthored = isBot(commit.author.login ?? ""); const pr = commit.associatedPullRequest; const hasGitHubReview = pr != null && pr.merged && pr.reviews >= 1; - const hasExternalReview = isExternallyReviewed( - commit.message, - pr?.labels ?? [], - ); + const hasExternalReview = isExternallyReviewed(commit.message, pr?.labels ?? []); const isApproved = hasGitHubReview || hasExternalReview; // OSSF logic: skip approved bot changesets entirely, @@ -71,10 +69,7 @@ export const codeReview = (data: RepoData): CheckResult => { return { score, - reason: - score >= 7 - ? "Most changes are reviewed" - : `${approved}/${total} changesets approved`, + reason: score >= 7 ? "Most changes are reviewed" : `${approved}/${total} changesets approved`, details: details.slice(0, 10), }; }; diff --git a/src/checks/packaging.ts b/src/checks/packaging.ts index cf5e802..a858c10 100644 --- a/src/checks/packaging.ts +++ b/src/checks/packaging.ts @@ -60,7 +60,11 @@ export const packaging = (data: RepoData): CheckResult => { ); if (!hasSuccessfulRun) { - return { score: -1, reason: "Publishing workflow found but no successful runs detected", details }; + return { + score: -1, + reason: "Publishing workflow found but no successful runs detected", + details, + }; } return { score: 10, reason: "Publishing workflow detected with successful runs", details }; diff --git a/src/checks/pinned-dependencies.ts b/src/checks/pinned-dependencies.ts index 095a0b6..58c105d 100644 --- a/src/checks/pinned-dependencies.ts +++ b/src/checks/pinned-dependencies.ts @@ -25,16 +25,14 @@ const FETCH_PIPE_EXEC_RE = const PROC_SUB_RE = /(?:bash|sh)\s+<\((?:curl|wget|gsutil)\s/g; // OSSF: URL is only "pinned" if it's raw.githubusercontent.com with a 40-char SHA in path -const PINNED_URL_RE = - /raw\.githubusercontent\.com\/[^/]+\/[^/]+\/[a-fA-F0-9]{40}\//; +const PINNED_URL_RE = /raw\.githubusercontent\.com\/[^/]+\/[^/]+\/[a-fA-F0-9]{40}\//; // Package manager patterns in workflow run: blocks // npm: npm install/i/ci/update - pinned only if npm ci const NPM_INSTALL_RE = /\bnpm\s+(?:install|i|update|install-test)\b/g; const NPM_CI_RE = /\bnpm\s+ci\b/; // pip: pip/pip3 install - pinned if --require-hashes -const PIP_INSTALL_RE = - /\b(?:pip3?|python3?\s+-m\s+pip)\s+install\b/g; +const PIP_INSTALL_RE = /\b(?:pip3?|python3?\s+-m\s+pip)\s+install\b/g; const PIP_HASHES_RE = /--require-hashes/; // go: go install/get - pinned if has @vX.Y.Z or @sha const GO_INSTALL_RE = /\bgo\s+(?:install|get)\s+\S+/g; @@ -139,8 +137,7 @@ export const pinnedDependencies = (data: RepoData): CheckResult => { // Pass 1: Detect which GH Action types exist (for weight assignment) for (const wf of data.workflowFiles) { const re = /uses:\s*(['"]?)([^\s'"]+)\1/g; - let m: RegExpExecArray | null; - while ((m = re.exec(wf.content)) !== null) { + for (const m of wf.content.matchAll(re)) { const action = m[2]; if (LOCAL_ACTION_RE.test(action)) continue; if (isGitHubOwned(action)) hasGitHubOwned = true; @@ -155,8 +152,7 @@ export const pinnedDependencies = (data: RepoData): CheckResult => { // Pass 2: Check GitHub Actions pinning for (const wf of data.workflowFiles) { const re = /uses:\s*(['"]?)([^\s'"]+)\1/g; - let m: RegExpExecArray | null; - while ((m = re.exec(wf.content)) !== null) { + for (const m of wf.content.matchAll(re)) { const action = m[2]; if (LOCAL_ACTION_RE.test(action)) continue; // local always pinned, not counted @@ -261,9 +257,8 @@ export const pinnedDependencies = (data: RepoData): CheckResult => { const fromRe = new RegExp(DOCKER_FROM_RE.source, "gm"); const pinnedAliases = new Set(); - let m: RegExpExecArray | null; - while ((m = fromRe.exec(df.content)) !== null) { + for (const m of df.content.matchAll(fromRe)) { const image = m[1]; if (image === "scratch") continue; if (image.startsWith("$")) continue; diff --git a/src/checks/vulnerabilities.ts b/src/checks/vulnerabilities.ts index 13d9618..8420a36 100644 --- a/src/checks/vulnerabilities.ts +++ b/src/checks/vulnerabilities.ts @@ -31,9 +31,10 @@ export const vulnerabilities = (data: RepoData): CheckResult => { return { score, - reason: vulns.length === 0 - ? "No known vulnerabilities found" - : `${vulns.length} known vulnerability(ies) via OSV`, + reason: + vulns.length === 0 + ? "No known vulnerabilities found" + : `${vulns.length} known vulnerability(ies) via OSV`, details, }; }; diff --git a/src/scorecard.ts b/src/scorecard.ts index 82ea33b..7caac68 100644 --- a/src/scorecard.ts +++ b/src/scorecard.ts @@ -108,11 +108,7 @@ const fetchWorkflowFiles = async ( if (!dirListing || !Array.isArray(dirListing)) return []; const workflowPaths = dirListing - .filter( - (f) => - f.type === "file" && - (f.name.endsWith(".yml") || f.name.endsWith(".yaml")), - ) + .filter((f) => f.type === "file" && (f.name.endsWith(".yml") || f.name.endsWith(".yaml"))) .map((f) => f.path); const files = await Promise.allSettled( @@ -237,7 +233,9 @@ const queryOsv = async ( body: JSON.stringify({ queries: chunk }), }); if (!res.ok) continue; - const data = (await res.json()) as { results: { vulns?: { id: string; severity?: { type: string; score: string }[] }[] }[] }; + const data = (await res.json()) as { + results: { vulns?: { id: string; severity?: { type: string; score: string }[] }[] }[]; + }; for (const result of data.results) { for (const vuln of result.vulns ?? []) { const severity = vuln.severity?.[0]?.score @@ -317,13 +315,11 @@ const assembleRepoData = async ( `/repos/${owner}/${repo}/hooks`, ), r.isSecurityPolicyEnabled - ? restGetRaw(client, `/repos/${owner}/${repo}/contents/SECURITY.md`).then( - async (content) => { - if (content) return content; - // Fallback: check org-level .github repo - return restGetRaw(client, `/repos/${owner}/.github/contents/SECURITY.md`); - }, - ) + ? restGetRaw(client, `/repos/${owner}/${repo}/contents/SECURITY.md`).then(async (content) => { + if (content) return content; + // Fallback: check org-level .github repo + return restGetRaw(client, `/repos/${owner}/.github/contents/SECURITY.md`); + }) : Promise.resolve(null), restGet<{ allow_force_pushes: { enabled: boolean }; @@ -412,7 +408,9 @@ const assembleRepoData = async ( ); const contributorData = contributorDetails .filter( - (r): r is PromiseFulfilledResult<{ + ( + r, + ): r is PromiseFulfilledResult<{ login: string; contributions: number; organizations: string[]; @@ -423,18 +421,32 @@ const assembleRepoData = async ( // Fetch check runs for merged PRs (OSSF uses ListCheckRunsForRef per PR head SHA) const CI_PATTERNS = [ - "appveyor", "buildkite", "circleci", "e2e", "github-actions", - "jenkins", "test", "travis-ci", "cirrus-ci", "azure-pipelines", - "ci/woodpecker", "codebuild", + "appveyor", + "buildkite", + "circleci", + "e2e", + "github-actions", + "jenkins", + "test", + "travis-ci", + "cirrus-ci", + "azure-pipelines", + "ci/woodpecker", + "codebuild", ]; // OSSF SAST app slugs from checks/raw/sast.go const SAST_APP_SLUGS = [ - "github-advanced-security", "github-code-scanning", - "lgtm-com", "sonarcloud", "sonarqubecloud", + "github-advanced-security", + "github-code-scanning", + "lgtm-com", + "sonarcloud", + "sonarqubecloud", ]; const SAST_ALLOWED_CONCLUSIONS = ["success", "neutral"]; const mergedPRSHAs = commitNodes - .filter((c) => c.associatedPullRequests.nodes.length > 0 && c.associatedPullRequests.nodes[0].merged) + .filter( + (c) => c.associatedPullRequests.nodes.length > 0 && c.associatedPullRequests.nodes[0].merged, + ) .map((c) => c.associatedPullRequests.nodes[0].headRefOid) .filter((sha): sha is string => !!sha); @@ -442,32 +454,43 @@ const assembleRepoData = async ( const checkRunResults = await Promise.allSettled( uniqueSHAs.map(async (sha) => { const [checkRuns, statuses] = await Promise.allSettled([ - restGet<{ check_runs: { name: string; status: string; conclusion: string | null; app: { slug: string } | null }[] }>( - client, - `/repos/${owner}/${repo}/commits/${sha}/check-runs?per_page=100`, - ), + restGet<{ + check_runs: { + name: string; + status: string; + conclusion: string | null; + app: { slug: string } | null; + }[]; + }>(client, `/repos/${owner}/${repo}/commits/${sha}/check-runs?per_page=100`), restGet<{ state: string; context: string }[]>( client, `/repos/${owner}/${repo}/commits/${sha}/statuses?per_page=100`, ), ]); - const runs = checkRuns.status === "fulfilled" ? checkRuns.value?.check_runs ?? [] : []; - const stats = statuses.status === "fulfilled" ? statuses.value ?? [] : []; - - const hasCI = runs.some((r) => - r.status === "completed" && - (r.conclusion === "success" || r.conclusion === "neutral") && - CI_PATTERNS.some((p) => r.name.toLowerCase().includes(p) || (r.app?.slug ?? "").toLowerCase().includes(p)), - ) || stats.some((s) => - s.state === "success" && - CI_PATTERNS.some((p) => s.context.toLowerCase().includes(p)), - ); + const runs = checkRuns.status === "fulfilled" ? (checkRuns.value?.check_runs ?? []) : []; + const stats = statuses.status === "fulfilled" ? (statuses.value ?? []) : []; + + const hasCI = + runs.some( + (r) => + r.status === "completed" && + (r.conclusion === "success" || r.conclusion === "neutral") && + CI_PATTERNS.some( + (p) => + r.name.toLowerCase().includes(p) || (r.app?.slug ?? "").toLowerCase().includes(p), + ), + ) || + stats.some( + (s) => + s.state === "success" && CI_PATTERNS.some((p) => s.context.toLowerCase().includes(p)), + ); // OSSF SAST detection: check suites by app slug with completed status + success/neutral conclusion - const hasSAST = runs.some((r) => - r.status === "completed" && - SAST_ALLOWED_CONCLUSIONS.includes(r.conclusion ?? "") && - SAST_APP_SLUGS.includes((r.app?.slug ?? "").toLowerCase()), + const hasSAST = runs.some( + (r) => + r.status === "completed" && + SAST_ALLOWED_CONCLUSIONS.includes(r.conclusion ?? "") && + SAST_APP_SLUGS.includes((r.app?.slug ?? "").toLowerCase()), ); return { sha, hasCIChecks: hasCI, hasSASTCheck: hasSAST }; @@ -477,7 +500,10 @@ const assembleRepoData = async ( const checkResultMap = new Map(); for (const r of checkRunResults) { if (r.status === "fulfilled") { - checkResultMap.set(r.value.sha, { hasCIChecks: r.value.hasCIChecks, hasSASTCheck: r.value.hasSASTCheck }); + checkResultMap.set(r.value.sha, { + hasCIChecks: r.value.hasCIChecks, + hasSASTCheck: r.value.hasSASTCheck, + }); } } // OSSF counts per-commit (not per-unique-SHA) — expand back to all merged PR SHAs @@ -543,8 +569,7 @@ const assembleRepoData = async ( requiresStatusChecks: bp.required_status_checks !== null, requiresCodeOwnerReviews: bp.required_pull_request_reviews?.require_code_owner_reviews ?? false, - dismissesStaleReviews: - bp.required_pull_request_reviews?.dismiss_stale_reviews ?? false, + dismissesStaleReviews: bp.required_pull_request_reviews?.dismiss_stale_reviews ?? false, isAdminEnforced: bp.enforce_admins?.enabled ?? false, }, ]; @@ -562,9 +587,7 @@ const assembleRepoData = async ( merged: c.associatedPullRequests.nodes[0].merged, headSHA: c.associatedPullRequests.nodes[0].headRefOid, reviews: c.associatedPullRequests.nodes[0].reviews.totalCount, - labels: (c.associatedPullRequests.nodes[0].labels?.nodes ?? []).map( - (l) => l.name, - ), + labels: (c.associatedPullRequests.nodes[0].labels?.nodes ?? []).map((l) => l.name), } : null, statusCheckRollup: c.statusCheckRollup?.state ?? null, @@ -663,4 +686,4 @@ export const computeScorecard = async ( }; }; -export { CHECK_REGISTRY, runChecks, computeAggregate }; +export { CHECK_REGISTRY, computeAggregate, runChecks };