Skip to content

ci: upgrade Hugo to 0.170.0 (security fixes, standard edition) - #120

Merged
romanoroth merged 1 commit into
mainfrom
ci/hugo-0.170
Nov 16, 2026
Merged

romanoroth merged 1 commit into
mainfrom
ci/hugo-0.170

Conversation

@romanoroth

Copy link
Copy Markdown
Collaborator

Summary

Upgrade Hugo from 0.168.0 to 0.170.0 (published 13 Nov 2026) and switch CI from the dropped extended/LibSass edition to the standard package.

Security fixes in 0.170.0:

  • GHSA-4whp-jx7j-xvrm — XSS via unescaped wrapperClass in the highlight shortcode / transform.Highlight (moderate; affects 0.140.2 through 0.169.x).
  • GHSA-r48v-r4vw-h9v8 — path traversal via _vendor/modules.txt (moderate; affects 0.56.0 through 0.169.x).

Edition switch: Hugo 0.170.0 removes the extended edition and LibSass. There is one standard binary; Sass (if used) now requires Dart Sass. Upstream still publishes hugo_extended_* aliases for compatibility, but the official notes ask CI to use the standard archives. This repo does not use SCSS/Sass (resources.ToCSS / css.Sass / .scss files are absent; styling is Tailwind CSS), so Dart Sass is not installed in CI.

main already includes the Tailwind v4 changes from #119. The local build was run against that tree.

Files changed

  • .github/workflows/cloudflare-pages.yml and cloudflare-pages-preview.yml: HUGO_VERSION 0.168.0 → 0.170.0; install asset hugo_extended_*_linux-amd64.deb → hugo_*_linux-amd64.deb.
  • Docs/pins updated to 0.170.0 and the standard edition: README.md, DEVELOPER.md, CLAUDE.md, docs/CLOUDFLARE_PAGES.md, docs/TECHNICAL_SETUP.md. The historical 0.168.0 changelog line in docs/CLOUDFLARE_PAGES.md is kept.

Local verification

  • Official standard binary: hugo v0.170.0-f7aa05f0f521611aa960b2da56e1870ea04f57b2 linux/amd64
  • Node v22.23.5, npm ci (0 vulnerabilities)
  • npm run build:css (Tailwind v4.3.3) and npm run generate:banner succeeded
  • hugo --minify --baseURL https://devopsdays.ch succeeded: 89 pages, 135 static files, 123 ms, no errors and no deprecation warnings

Nicht mergen ohne Romanos OK

Update workflows and docs from 0.168.0 to 0.170.0, and install the
standard linux-amd64 .deb instead of hugo_extended (dropped upstream).
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview-pr-120.devopsdays-ch.pages.dev


Updated for commit 2f20425

@romanoroth
romanoroth merged commit 1cfd480 into main Nov 16, 2026
1 check passed
@romanoroth
romanoroth deleted the ci/hugo-0.170 branch November 16, 2026 21:02
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