Conversation
Co-authored-by: raux <5723643+raux@users.noreply.github.com>
Co-authored-by: raux <5723643+raux@users.noreply.github.com>
Co-authored-by: raux <5723643+raux@users.noreply.github.com>
✅ Tests completed successfully. Hugo v0.139.4 builds the site cleanly with no errors:
|
There was a problem hiding this comment.
Pull request overview
This PR comprehensively updates GitHub Actions dependencies and fixes Hugo template deprecations to ensure compatibility with Hugo v0.139+. The changes address security concerns and eliminate deprecated template syntax that could cause build failures.
- Updates all GitHub Actions to their latest major versions (checkout v4, cache v4, setup-go v5, etc.)
- Replaces deprecated Hugo template syntax (
.Site.IsMultiLingual→hugo.IsMultilingual,.Site.Author.*→.Site.Params.author.*) - Updates Google Analytics template to use the non-async internal template
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/deploy.yml |
Updates actions to v4/v5, modernizes Go setup to use "stable" version |
.github/workflows/hugo.yml |
Updates actions/checkout, configure-pages, upload-pages-artifact, and deploy-pages to latest versions |
.github/workflows/update-theme.yml |
Updates checkout, peaceiris/actions-hugo, and git-auto-commit-action to latest versions |
layouts/partials/head.html |
Replaces deprecated async Google Analytics template with modern template |
layouts/partials/header.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/partials/footer.html |
Updates author references to use Params.author namespace |
layouts/partials/authorbox.html |
Updates all author field references to use Params.author namespace |
layouts/partials/post_meta/author.html |
Updates author name references to use Params.author.name |
layouts/partials/widgets/author-card.html |
Updates multilingual check and all author field references |
layouts/partials/widgets/content-all.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/partials/widgets/hero.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/partials/widgets/languages.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/partials/widgets/post-card.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/index.html |
Updates multilingual check to use hugo.IsMultilingual |
layouts/404.html |
Updates multilingual check to use hugo.IsMultilingual |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| --baseURL "${{ steps.pages.outputs.base_url }}/" | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3.0.1 | ||
| uses: actions/upload-pages-artifact@v3 |
There was a problem hiding this comment.
The version was changed from v3.0.1 to v3, which appears to be a downgrade. Version v3 is a major version tag that may point to the latest v3.x release, but it's more common practice to use a specific patch version or minor version for stability. Consider using a specific version tag like v3.0.1 or the latest available v3.x version to ensure reproducible builds.
| uses: actions/upload-pages-artifact@v3 | |
| uses: actions/upload-pages-artifact@v3.0.1 |
Comprehensive dependency audit and update to eliminate security vulnerabilities and ensure deployment compatibility with modern Hugo versions.
GitHub Actions Updates
Hugo Template Compatibility (v0.139+)
_internal/google_analytics_async.htmlwith_internal/google_analytics.html.Site.IsMultiLingualwithhugo.IsMultilingual.Site.Author.*with.Site.Params.author.*Security
All dependencies scanned via GitHub Advisory Database: 0 vulnerabilities found
Deployment Verification
Site builds cleanly with Hugo v0.139.4 and serves successfully.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.