Skip to content

feat(site): the OpenSSF Best Practices badge in the footer - #23

Merged
HackTuah merged 1 commit into
mainfrom
docs/site-badge
Oct 6, 2026
Merged

HackTuah merged 1 commit into
mainfrom
docs/site-badge

Conversation

@HackTuah

@HackTuah HackTuah commented Oct 6, 2026

Copy link
Copy Markdown
Member

What

kotiko.org now shows the OpenSSF Best Practices: Silver badge in every page's footer, linked to entry 15259.

  • Drawn in CSS, not loaded from bestpractices.dev. The site promises it "loads nothing from other sites" (and npm run check enforces that). The level comes from one value, openssf.level in site/src/config.ts; when the badge level changes, edit that line. The README keeps the live image.
  • Accessible name: "OpenSSF Best Practices: silver".
  • Test: site/tests/badge.test.mjs checks that three pages show the configured level, link the entry, and load no badge image.

Also done today, outside this PR: the GitHub repo's homepage is now https://kotiko.org (it was empty).

Checked

Site build, npm run check ("loads nothing from other hosts") and npm test (21 + 4 new) pass. Screenshots of the footer in light and dark were checked by eye.

🤖 Generated with Claude Code

Kotiko holds the OpenSSF silver badge (entry 15259). Every page of
kotiko.org now shows it in the footer, linked to the entry. The site
promises it loads nothing from other hosts, so the badge is drawn in CSS
from one value in src/config.ts (openssf.level) instead of the live
image the README uses; change that value when the level changes.

The link's accessible name is "OpenSSF Best Practices: silver"; the
first version ran the two words together, which the new test caught.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ayla Croft <dev@scriptkittyos.com>
@HackTuah
HackTuah requested a review from minitru as a code owner October 6, 2026 22:17
@HackTuah
HackTuah merged commit 5d3bbcd into main Oct 6, 2026
14 checks passed
@HackTuah
HackTuah deleted the docs/site-badge branch October 6, 2026 23:15
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