fix: resolve gosec G122 findings in man_doc.go (cherry-pick #730)#3
Merged
Merged
Conversation
…oharbor#730) Co-authored-by: Prasanth Baskar <bupdprasanth@gmail.com>
Author
|
漏洞问题在其他 PR解决。 |
yuzichen12123
approved these changes
Apr 16, 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
Cherry-pick of upstream commit 1f89cd1 (goharbor#730) to the
alauda-v0.0.18fork branch.Fixes 2 pre-existing gosec G122 (symlink TOCTOU race in
filepath.Walkcallbacks) findings indoc/man-docs/man_doc.gothat block golangci-lint on the fork branch. Switches toos.Root-scoped filesystem APIs so the man page generator no longer trips the race-prone-path rule.Context
When Renovate was onboarded to
alauda-v0.0.18(see #2), the lint job started failing with:Both issues are these G122 findings. They were fixed on
mainin goharbor#730 but never backported to the fork branch. Without this cherry-pick, every Renovate PR onalauda-v0.0.18will fail lint → blocksautomerge.Test plan
go build ./...passes🤖 Generated with Claude Code