Skip to content

feat(docs): add a user-facing security posture page - #243

Merged
gtauzin merged 2 commits into
mainfrom
security-posture-page
Jul 26, 2026
Merged

feat(docs): add a user-facing security posture page#243
gtauzin merged 2 commits into
mainfrom
security-posture-page

Conversation

@gtauzin

@gtauzin gtauzin commented Jul 26, 2026

Copy link
Copy Markdown
Member

What

Adds a user-facing security posture explanation page (docs/pages/explanation/security.md) to generated projects and to the template repo's own docs. It reassures prospective package users by naming every measure the project runs (trusted publishing, attestations, SBOM, SAST, secret scanning, least-privilege CI, scoped automation) and what each means for their trust.

  • Visibility-aware: gated on repo_visibility, so a private project's page does not claim CodeQL or the OpenSSF Scorecard (which it does not run); it presents the free equivalents and explains the difference. Fail-loud applies to reassurance too.
  • Added to the docs nav under Explanation → Security; the index auto-lists it via <!-- SUBPAGES -->.

Bundled fixes (surfaced by the v0.33.0 fan-out canary on yohou)

  • tests/** ruff ignore gains S301/S110/S311 (test code legitimately uses pickle, try/except/pass, non-crypto random) so no repo needs per-repo triage for them.
  • code_owner answer (default @gtauzin) drives CODEOWNERS, replacing the bare @{{ github_username }} org name that GitHub rejects as an invalid code owner.

Release plan

This bundles with the harden-fleet-security controls as v0.34.0, then fans out to all 7 repos in one pass. Note: this touches mkdocs.yml nav, so that fan-out reintroduces the nav-clobber discipline (per-section nav counts before each copier update).

gtauzin added 2 commits July 26, 2026 09:52
Add docs/pages/explanation/security.md, an explanation-quadrant page that reassures
package users by naming every security measure the project runs and what it means for
their trust. Gated on repo_visibility so it never claims a control a private repo does not
run (no CodeQL/Scorecard section there). Ships to generated projects and the template repo.

Bundles two fixes surfaced by the v0.33.0 fan-out canary:
- add S301/S110/S311 to the generated tests/** ruff ignore (test code legitimately uses
  pickle, try/except/pass, and non-crypto random), so repos need no per-repo triage for them
- add a code_owner answer (default @gtauzin) for CODEOWNERS, replacing the bare
  @{github_username} org name that GitHub rejects as an invalid code owner
@gtauzin
gtauzin merged commit 8dd0779 into main Jul 26, 2026
15 checks passed
@gtauzin
gtauzin deleted the security-posture-page branch July 26, 2026 08:07
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