Commit Graph
7 Commits
Author SHA1 Message Date
Dylan M. Taylor 93252671d7 ci: run Harden-Runner on every job (#42)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:10:18 -05:00
Dylan M. Taylor d437cd4110 ci: SonarCloud analysis from CI, like the other craft repos (#37)
* ci: SonarCloud analysis from CI instead of automatic analysis

* Publish the worker's node:test coverage to SonarCloud (test:coverage)

* ci: shared SonarCloud workflow back on @main (node coverage merged in craft-common-actions#194)
2026-11-10 22:31:36 -05:00
FredApps cc4f4aa237 ci: move checkout and setup-node off Node 20, and bound job times 2026-11-10 11:10:54 +01:00
Dylan M. Taylor eff49c56fe Harden the sign-in page and check Safe Browsing status
Chrome warns because Safe Browsing lists some craft.wiki pages as phishing, and
the Worker's sign-in page was a bare "Craft Wiki sign-in" title served from an
/api/ path with no branding, no explanation and no security headers. Give it the
wiki's branding, say that the password prompt belongs to discord.com, and send a
CSP with framing, referrer and content-type headers.

Add a script and a daily workflow that report Google's verdict for the domain,
so a listing is noticed without waiting for a browser to show it.
2026-11-06 18:31:29 -05:00
FredAppsandClaude Opus 5.5 49481ddecc Finish Discord sign-in when the callback has no opener
Save the session where Sveltia looks for it and open the editor when no editor window answers, and show text instead of a blank page. Run the Worker test file directly, because the directory form ran no tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 23:32:02 +01:00
FredAppsandClaude Opus 5.5 64b3c3b7c6 Let Senior Contributors edit the wiki with Discord sign-in
Add a Worker that signs editors in with Discord, checks the Senior Contributor role, and serves the editor's GitHub API with a server-side token limited to wiki content. GitHub tokens pass through unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 21:41:07 +01:00
Dylan M. Taylor 25a0b2d644 Trigger Cloudflare builds on main pushes 2026-11-06 13:51:51 -05:00