Skip to content

chore: add .bestpractices.json for OpenSSF badge automation#45

Merged
aksOps merged 1 commit intomainfrom
ci-bestpractices-automation
Apr 23, 2026
Merged

chore: add .bestpractices.json for OpenSSF badge automation#45
aksOps merged 1 commit intomainfrom
ci-bestpractices-automation

Conversation

@aksOps
Copy link
Copy Markdown
Contributor

@aksOps aksOps commented Apr 23, 2026

Summary

Adds .bestpractices.json at repo root so the BestPractices badge site (project 12628) can auto-fill criterion justifications on its next re-scan.

Pre-fills 86 entries:

  • 68 Met — with evidence URLs pointing at LICENSE, SECURITY.md, CI workflows, code-scanning dashboard, releases, scorecard viewer
  • 10 N/A — with reasons (no user passwords, no custom crypto, single LICENSE file, cosign instead of PGP, etc.)
  • 8 ? — flagged as TODO for follow-up (code_of_conduct, governance, roles_responsibilities, access_continuity, bus_factor, report_archive, release_notes_vulns, accessibility_best_practices)

Why

Manual form entry of 86 justifications is error-prone and drifts from repo state. The .bestpractices.json file is the documented automation path per automation-proposals.md. Badge site auto-discovers it and re-applies on every re-scan.

Automation URL

https://raw.githubusercontent.com/RandomCodeSpace/docsiq/main/.bestpractices.json

(Implicit — no manual entry needed. Badge site fetches on re-analysis.)

Follow-up

After merge, to flip the 8 ? → Met, a separate PR should add:

  1. CODE_OF_CONDUCT.md (Contributor Covenant 2.1)
  2. GOVERNANCE.md (BDFL + security contact continuity)
  3. .github/CODEOWNERS
  4. .github/release.yml (security-label section template)
  5. docs/ACCESSIBILITY.md (WCAG AA stance for SPA)

That should carry the badge from 22% → 100% passing tier.

Test plan

  • JSON validates (python3 -c 'json.load(open(...))')
  • Status-value counts match spec: 68 Met / 10 N/A / 8 ? / 86 total
  • After merge, re-trigger analysis at bestpractices.dev/projects/12628 and confirm pre-fill

🤖 Generated with Claude Code

The BestPractices badge site (bestpractices.dev) auto-discovers
.bestpractices.json at the repo root and pre-fills criterion
status/justification pairs from it.

Pre-fills 86 entries for project 12628:
  - 68 Met (with evidence URLs / file paths)
  - 10 N/A (with reasons — no user passwords, no custom crypto, etc.)
  -  8 ? TODO (code_of_conduct, governance, roles_responsibilities,
         access_continuity, bus_factor, report_archive,
         release_notes_vulns, accessibility_best_practices)

Ref: https://github.com/coreinfrastructure/best-practices-badge/blob/main/docs/automation-proposals.md
Badge URL: https://www.bestpractices.dev/en/projects/12628
Automation URL: https://raw.githubusercontent.com/RandomCodeSpace/docsiq/main/.bestpractices.json

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aksOps aksOps enabled auto-merge (squash) April 23, 2026 05:46
@aksOps aksOps merged commit b324919 into main Apr 23, 2026
12 checks passed
@aksOps aksOps deleted the ci-bestpractices-automation branch April 23, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant