Skip to content

CI quality gates, click-to-load Spotify, branded cheatsheets - #17

Merged
gobinathm merged 4 commits into
mainfrom
ci/quality-gates
Nov 20, 2026
Merged

gobinathm merged 4 commits into
mainfrom
ci/quality-gates

Conversation

@gobinathm

@gobinathm gobinathm commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Brings notes.gobinath.com in line with gobinath.com docs/DESIGN.md §5 (privacy) and §8 (quality gates). Four commits:

1. Click-to-load Spotify (SpotifyEpisode.vue)

  • The 8 Spotify <iframe> players loaded Spotify's scripts and tracking for every visitor on page load.
  • Now each is a branded card; the Spotify player loads only after the visitor clicks Play. Without JS it's a plain "Listen on Spotify" link.

2. Branded cheatsheets (14 pages in public/cheatsheets/)

  • Google Fonts removed; Archivo, Newsreader and JetBrains Mono self-hosted in public/fonts/brand/.
  • A <style id="brand"> override sets the brand neutrals and yellow accent; navy tints replaced with brand black. Domain, service and right/wrong colours are kept because they carry meaning.

3. CI (.github/workflows/ci.yml)

  • Build (catches broken links), privacy check, no-JS smoke test, Worker dry run, workflow lint.
  • scripts/privacy-check.mjs copied from gobinath.com with this site's allowlist: own domains, the Gemini proxy Worker, Umami, and VitePress's unused iconify fallback (documented inline).
  • scripts/smoke-check.mjs: all 153 pages readable without JS, <html class="dark"> on every page, no third-party iframes.
  • pnpm run verify runs the same locally. README and CONTRIBUTING updated (new component, cheatsheet rules, CI).

4. Harden the existing workflows (found by the new workflow lint)

  • first-interaction.yml used pull-request-message, which actions/first-interaction@v1 doesn't accept (it's pr-message), so first-time PRs never got the welcome comment. Fixed, and the message now says pnpm instead of npm.
  • Every action pinned to a commit SHA (same versions the tags pointed to; no upgrades).
  • persist-credentials: false on all checkouts; no dependency cache in the Worker deploy.
  • pull_request_target kept for the welcome comment (needed for fork PRs) with an inline note: the workflow never checks out or runs PR code.
  • actionlint and zizmor both clean.

Needs: the PRIVACY_TERMS repo secret (same value as gobinath.com / thoughts) so the private-terms part runs; until then it's skipped with a log line.

Verified locally: pnpm run verify passes; both checks fail on a planted Spotify iframe.

🤖 Generated with Claude Code

gobinathm and others added 4 commits November 19, 2026 14:57
Replace 8 Spotify iframes with <SpotifyEpisode>: nothing loads from Spotify until
the visitor clicks Play; without JS it is a plain link (DESIGN.md §5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 standalone cheatsheets: drop Google Fonts for self-hosted Archivo, Newsreader and
JetBrains Mono (public/fonts/brand); brand neutrals and yellow accent via a <style id="brand">
override; navy tints replaced. Domain, service and right/wrong colours kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… workflow lint)

privacy-check.mjs copied from gobinath.com with this site's host allowlist;
smoke-check.mjs checks pages render without JS, dark by default, no third-party iframes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pin every action to a commit SHA (same versions as the tags they used)
- persist-credentials: false on checkouts; no dependency cache in the Worker deploy
- first-interaction: fix 'pull-request-message' -> 'pr-message' (PR welcome never posted);
  document why pull_request_target is safe here; npm -> pnpm in the message

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gobinathm
gobinathm merged commit 6c1c1b8 into main Nov 20, 2026
3 checks passed
@gobinathm
gobinathm deleted the ci/quality-gates branch November 20, 2026 23:16
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