← Back to Pull requests

chore(deps): Bump github.com/gohugoio/hugo from 0.169.0 to 0.170.0 in /scripts #2925

Closed
unknown closed this pull request without merging on Dec 02, 2026 08:33 UTC
View on GitHub
unknown unknown commented on Dec 01, 2026 02:29 UTC
Author

Bumps github.com/gohugoio/hugo from 0.169.0 to 0.170.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/gohugoio/hugo/releases">github.com/gohugoio/hugo's releases</a>.</em></p>
<blockquote>
<h2>v0.170.0</h2>
<p>The big change in this release is that <strong>the <em>extended</em> edition of Hugo is gone</strong>. LibSass has been deprecated for a long time, and it was the only remaining reason we needed a CGO-enabled extended build. There is now only one Hugo binary, and apart from LibSass it has all the features the extended build had.</p>
<h2>Notes</h2>
<ul>
<li>Setting <code>transpiler</code> to <code>libsass</code> in <a href="https://gohugo.io/functions/css/sass/"><code>css.Sass</code></a> now returns an error. <a href="https://gohugo.io/functions/css/sass/#dart-sass">Dart Sass</a> is now the default and the only transpiler, so you need to <a href="https://gohugo.io/functions/css/sass/#installation-overview">install it</a> if you use Sass.</li>
<li>We no longer publish <code>hugo_extended_</code> archives. To avoid breaking existing CI setups, we publish aliases for the most downloaded extended archives (e.g. <code>hugo_extended_&lt;version&gt;_linux-amd64.tar.gz</code>, <code>hugo_extended_&lt;version&gt;_Linux-64bit.tar.gz</code>, the <code>linux-amd64.deb</code>, <code>linux-arm64.tar.gz</code> and <code>windows-amd64.zip</code>), but you should update your scripts to use the standard archives. The <code>extended_withdeploy</code> builds are also removed. See <a href="https://gohugo.io/installation/">Installation</a>.</li>
<li><a href="https://gohugo.io/functions/hugo/isextended/"><code>hugo.IsExtended</code></a> now always returns <code>false</code>, and the module config setting <code>hugoVersion.extended</code> is deprecated and has no effect.</li>
<li>Command-line flags (e.g. <code>--buildDrafts</code>) now override OS <a href="https://gohugo.io/configuration/introduction/#environment-variables">environment variables</a> (e.g. <code>HUGO_BUILDDRAFTS</code>). This also fixes <code>HUGO_ENVIRONMENT=qa hugo build -e staging</code> loading the <code>staging</code> config but reporting <code>qa</code> in <code>hugo.Environment</code>.</li>
<li><a href="https://gohugo.io/functions/strings/truncate/"><code>strings.Truncate</code></a> has been rewritten on top of a proper HTML scanner. It now handles comments, void elements, quoted attributes with <code>&gt;</code> and raw text elements such as <code>script</code> correctly, and it's faster and allocates less. On a curious note, the old version was implemented by <a href="https://github.com/biilmann">Mathias Biilmann</a>, the Netlify CEO.</li>
<li><code>time.Time</code> values now keep their named time zone, and <a href="https://gohugo.io/functions/compare/eq/"><code>eq</code></a>, <code>ne</code>, <code>in</code> and <code>uniq</code> compare <code>time.Time</code> values by instant.</li>
<li><a href="https://gohugo.io/functions/resources/match/"><code>resources.Match</code></a> and friends now preserve the directory casing in the matched paths, so e.g. <code>resources.Match &quot;gallery/Travel/Iceland/
&quot;</code> now works on case-sensitive file systems.</li>
<li>Syncing of static files is much faster for big unchanged files, as we now skip the content check for files with the same size and modification time.</li>
<li>Several fixes and hardening of the WASM based image codecs (AVIF crash at <code>encoderSpeed</code> 6 and lower, recovering from broken WASM instances in the server).</li>
</ul>
<h2>Security</h2>
<h3>Hugo</h3>
<ul>
<li><a href="https://gohugo.io/configuration/markup/#passthrough">Passthrough</a> content is now HTML escaped when no passthrough render hook is set, unless <code>markup.goldmark.renderer.unsafe</code> is enabled. Before this, e.g. <code>\(&lt;img src=x onerror=alert(1)&gt;\)</code> in a content file emitted raw HTML.</li>
<li>The <code>wrapperClass</code> option, settable from the <a href="https://gohugo.io/shortcodes/highlight/"><code>highlight</code></a> shortcode and <a href="https://gohugo.io/functions/transform/highlight/"><code>transform.Highlight</code></a>, is now escaped.</li>
<li><a href="https://gohugo.io/hugo-modules/use-modules/#vendor">Vendored</a> module paths are now restricted to the <code>_vendor</code> directory (symlinks pointing outside are rejected).</li>
</ul>
<p>Thanks to <a href="https://github.com/R0X4R"><code>@​R0X4R</code></a> for finding and reporting the last two issues.</p>
<h3>Go</h3>
<p>This release is built with Go 1.27.4, which <a href="https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ">includes 12 security fixes</a>. The one most relevant for Hugo is a crash in the <code>net/http</code> HTTP/1 server (used by <code>hugo server</code>) caused by a race in <code>MaxBytesReader</code>. The other 11 are in the <code>cmd/go</code> toolchain (cgo flag and linker injection at build time) and mainly matter if you build Hugo from source with untrusted dependencies.</p>
<h3>Dependencies</h3>
<ul>
<li><code>golang.org/x/net</code> v0.62.0 <a href="https://seclists.org/oss-sec/2026/q4/407">fixes two issues in the <code>html</code> package</a>: quadratic complexity when coalescing text nodes, and a namespace issue when rendering raw text. Hugo uses this package when collecting HTML elements for <code>hugo_stats.json</code> and in the AsciiDoc integration.</li>
<li><code>github.com/go-jose/go-jose/v4</code> v4.1.6 (indirect dependency) contains a number of <a href="https://github.com/go-jose/go-jose/releases">security fixes</a>, among them GHSA-mgcc-cww5-fp2q (RSA modulus size limit when parsing JWKs) and a stack depth limit in the JSON decoder.</li>
</ul>
<h2>Changes</h2>
<ul>
<li>Remove libsass and the extended build tag c2f9cb82 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15405">#15405</a></li>
<li>Remove the extended build from the release 0b66ebd4 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15502">#15502</a></li>
<li>Fix typo in AGENTS.md 588241bf <a href="https://github.com/pei711"><code>@​pei711</code></a></li>
<li>tpl/collections: Fix sort when some items lack the sort key a8a8e978 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15523">#15523</a></li>
<li>warpc, commands: Fix Close of image dispatchers, recover in fast render 3c2f52d4 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15522">#15522</a></li>
<li>warpc: Fix AVIF encode crashing at encoderSpeed 6 and lower 47425654 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15522">#15522</a></li>
<li>Fix misc layout lookup issues f3875ec3 <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15538">#15538</a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15540">#15540</a></li>
<li>tpl/collections: Fix merge of maps with concrete element types b76fde2f <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15499">#15499</a></li>
<li>tpl/tplimpl: Fix shortcode layout lookup in non-default output formats 87e6e14c <a href="https://github.com/jmooring"><code>@​jmooring</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15536">#15536</a></li>
<li>langs/i18n: Fix project translations losing to module translations fa5a3d48 <a href="https://github.com/jmooring"><code>@​jmooring</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15518">#15518</a></li>
<li>Adjust Exif test to fix now failing deprecation tests 471d0fb3 <a href="https://github.com/bep"><code>@​bep</code></a></li>
<li>markup/goldmark: Escape passthrough content when no render hook is set e2f66a23 <a href="https://github.com/raghu45345"><code>@​raghu45345</code></a></li>
<li>tpl: Compare time.Time values by instant in eq, ne, in and uniq 3519196b <a href="https://github.com/jmooring"><code>@​jmooring</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15577">#15577</a></li>
<li>Skip content check for static files with the same size and modification time afb2d9ac <a href="https://github.com/bep"><code>@​bep</code></a> <a href="https://redirect.github.com/gohugoio/hugo/issues/15572">#15572</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/gohugoio/hugo/commit/f7aa05f0f521611aa960b2da56e1870ea04f57b2"><code>f7aa05f</code></a> releaser: Bump versions for release of 0.170.0</li>
<li><a href="https://github.com/gohugoio/hugo/commit/29bcc86d18e5baf9f451c0e6f337bffca0170e3b"><code>29bcc86</code></a> build(deps): bump golang.org/x/image from 0.47.0 to 0.48.0</li>
<li><a href="https://github.com/gohugoio/hugo/commit/4f8354ebf0f60d05e44147e6c4ecb7e63e891f04"><code>4f8354e</code></a> build(deps): bump golang.org/x/text from 0.43.0 to 0.44.0</li>
<li><a href="https://github.com/gohugoio/hugo/commit/e2f66a235e83f440411d46203cb55c7b88839dcf"><code>e2f66a2</code></a> markup/goldmark: Escape passthrough content when no render hook is set</li>
<li><a href="https://github.com/gohugoio/hugo/commit/588241bfe0386f806d89df539d0579d33730e9c9"><code>588241b</code></a> Fix typo in AGENTS.md</li>
<li><a href="https://github.com/gohugoio/hugo/commit/3519196b8dfada25ef955ac26522c6926b08d3b3"><code>3519196</code></a> tpl: Compare time.Time values by instant in eq, ne, in and uniq</li>
<li><a href="https://github.com/gohugoio/hugo/commit/afb2d9ac7558afebe05bd2bcb399311f33d7fff1"><code>afb2d9a</code></a> Skip content check for static files with the same size and modification time</li>
<li><a href="https://github.com/gohugoio/hugo/commit/6aebad49b40b5deffd95ef6137db226794067751"><code>6aebad4</code></a> build(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0</li>
<li><a href="https://github.com/gohugoio/hugo/commit/88468544ea87324f8f8d1334a2a58bbabb0d9465"><code>8846854</code></a> build(deps): bump github.com/getkin/kin-openapi from 0.152.0 to 0.153.0</li>
<li><a href="https://github.com/gohugoio/hugo/commit/b755c9d587a8573745dcffa091a78b24d270281f"><code>b755c9d</code></a> commands: Rebuild assets also mounted as static</li>
<li>Additional commits viewable in <a href="https://github.com/gohugoio/hugo/compare/v0.169.0...v0.170.0">compare view</a></li>
</ul>
</details>
<br />

![Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR

  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it

  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency

  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

  • You can disable automated security fix PRs for this repo from the Security Alerts page.

    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: simonpasquier Review duration: 1803m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2925"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.5% · Safe to merge
    22.5%