ci: verify documentation/go.sum integrity#4531
Merged
Merged
Conversation
✅ Deploy Preview for kptdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CI guardrails to prevent accidental corruption of the documentation/ Go module dependency checksums (especially documentation/go.sum) when PRs modify documentation.
Changes:
- Introduces a new GitHub Actions workflow triggered on
documentation/**changes (PRs and pushes tomain). - Fails CI if
documentation/go.sumis missing/empty. - Runs
go mod verifyindocumentation/to validate module checksum integrity.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Adds a CI check that fails if documentation/go.sum is empty or inconsistent with go.mod. This prevents accidental stripping of the checksum file during Go version upgrades. Signed-off-by: Fiachra <fiachra@nordix.org> Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
a184621 to
3b36040
Compare
liamfallon
approved these changes
May 21, 2026
mozesl-nokia
approved these changes
May 21, 2026
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.
Summary
Adds a GitHub Actions workflow that checks documentation/go.sum on PRs touching
documentation/:go mod verify— ensures checksums match downloaded modulesMotivation
PR #4519 accidentally emptied
documentation/go.sumwhen upgrading Go versions. This happened becausego mod tidywith newer Go can strip entries for Hugo-only modules. This CI check catches that before merge.What was tested
go mod verifypasses against the currentdocumentation/module