Repository navigation
feat(deploy): serve alienstudio.com from Workers (v0.0.3) - #9
Merged
Merged
Conversation
ssg builds from _layouts/ into docs/; public/, templates/, the root main.js and the root index.html were older copies nothing read or served. They held all five open code-scanning alerts (two js/xss- through-dom, three js/incomplete-multi-character-sanitization). The live script, _layouts/main.js, sets no innerHTML. Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
mise.toml pins the generator. scripts/check-ssg-pin.py fails when the pin is not the latest ssg release or when docs/ was built by another version (docs/sbom.cdx.json records it). Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
quality-gate.yml pins checkout, setup-node and setup-python by SHA, keeps no credentials, moves to Node 22, and adds the ssg pin check and axe-core on every built page (scripts/a11y-axe.mjs). Verified with actionlint; axe reports 0 violations on all 19 pages. Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
Replaces the GitHub Pages workflow with Cloudflare Workers static assets serving docs/: - wrangler.jsonc: alienstudio-preview on workers.dev, alienstudio on alienstudio.com; - worker/notFound.js answers unknown paths, /404 and /404/ with the 404 page and a 404 status; - deploy-cloudflare.yml dry-runs PRs, previews feat/** pushes and deploys main, with actions pinned by SHA and wrangler 4.168.0. make build now writes to public/ (ignored) and copies it into a fresh docs/, without ssg's build caches, and writes the bare host to CNAME (ssg writes a DNS zone line, which was patched by hand before). ssg's _headers is kept: Workers apply it, and every page loads with no console errors under it (the pages use only same-origin scripts and styles), so the site gains nosniff, a referrer policy and frame-ancestors. Verified with wrangler dev and headless Chrome on all 19 pages, including the gallery lightbox. Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
Rebuilt with the pinned ssg 0.0.77. Page HTML is unchanged; sitemaps change order, and ssg's build caches leave docs/. Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
Signed-off-by: Sebastien Rousseau <sebastienrousseau@users.noreply.github.com> Assisted-by: Claude Code:claude-opus-5-5 [Bash, Read, Edit]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves alienstudio.com from GitHub Pages to Cloudflare Workers and closes the repo's five open code-scanning alerts.
The site is built with ssg 0.0.77, pinned in mise.toml, and CI now runs axe-core on every page (0 violations).
Highlights ⭐️
feat/**branches deploy a workers.dev preview, andmaindeploys alienstudio.com. Unknown paths answer 404 with the not-found page.docs/_headers(Pages ignored it), so the site gainsnosniff, a referrer policy andframe-ancestors. The pages use only same-origin scripts and styles, and all 19 load with no console errors under it, gallery lightbox included.public/,templates/, the rootmain.jsandindex.html), which are removed. The live script,_layouts/main.js, sets noinnerHTML.mise.tomlpins ssg 0.0.77. CI fails if the pin is not the latest release or did not builddocs/.What's Changed
chore: remove unused build copiesby @sebastienrousseaubuild: pin ssg 0.0.77 in mise.tomlby @sebastienrousseauci: pin actions by SHA, gate ssg pin and axeby @sebastienrousseaufeat(deploy): serve alienstudio.com from Workersby @sebastienrousseaubuild(docs): rebuild with ssg 0.0.77by @sebastienrousseauchore(release): v0.0.3by @sebastienrousseauDetail:
make buildwrites topublic/(now ignored) and copies it into a freshdocs/, without ssg's build caches (.ssg/,.ssg-cache/), and writes the bare host toCNAME(ssg writes a DNS zone line, which was patched by hand before).mise installandmake build, the build badge points atquality-gate.yml, and a Deployment section is added.Validation
make build(ssg 0.0.77 via mise): clean; page HTML is unchanged, sitemaps change order only.check-ssg-pin.py,check-seo.py,regression-test.py, front matter and contrast checks: pass.wrangler dev: pages 200,/about307 to/about/, unknown paths,/404and/404/404, internal files 404. With_headersapplied, Chrome shows no console errors on any page, and the gallery lightbox opens with the right image and count.actionlint: clean.After merge: the production deploy is checked live, then GitHub Pages is turned off for this repo.
Full Changelog: main...feat/v0.0.3