Skip to content

fix: resolve gosec G122 findings in man_doc.go (cherry-pick #730)#3

Merged
chengjingtao merged 1 commit into
alauda-v0.0.18from
fix/gosec-g122-man-doc
Apr 16, 2026
Merged

fix: resolve gosec G122 findings in man_doc.go (cherry-pick #730)#3
chengjingtao merged 1 commit into
alauda-v0.0.18from
fix/gosec-g122-man-doc

Conversation

@chengjingtao

Copy link
Copy Markdown

Summary

Cherry-pick of upstream commit 1f89cd1 (goharbor#730) to the alauda-v0.0.18 fork branch.

Fixes 2 pre-existing gosec G122 (symlink TOCTOU race in filepath.Walk callbacks) findings in doc/man-docs/man_doc.go that block golangci-lint on the fork branch. Switches to os.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:

2 issues:
* gosec: 2

Both issues are these G122 findings. They were fixed on main in goharbor#730 but never backported to the fork branch. Without this cherry-pick, every Renovate PR on alauda-v0.0.18 will fail lint → blocks automerge.

Test plan

🤖 Generated with Claude Code

…oharbor#730)

Co-authored-by: Prasanth Baskar <bupdprasanth@gmail.com>
@chengjingtao

Copy link
Copy Markdown
Author

漏洞问题在其他 PR解决。

@chengjingtao chengjingtao enabled auto-merge (squash) April 16, 2026 11:11
@chengjingtao chengjingtao disabled auto-merge April 16, 2026 11:12
@chengjingtao chengjingtao merged commit 9f3b558 into alauda-v0.0.18 Apr 16, 2026
5 of 6 checks passed
@chengjingtao chengjingtao deleted the fix/gosec-g122-man-doc branch April 16, 2026 11:12
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.

3 participants