Issue Details
The lint workflow is currently failing because golangci/golangci-lint-action is configured with version: latest and the action has recently resolved that to golangci-lint v2.12.1.
That version is now reporting repo-wide findings across gosec, govet and modernize causing the lint job to fail.
Current findings include:
gosec
G124 cookie attribute findings in:
modules/caddyhttp/fileserver/browse.go
modules/caddyhttp/reverseproxy/selectionpolicies.go
G710 open redirect taint finding in:
modules/caddyhttp/fileserver/staticfiles.go
govet
reflect.Ptr inline constant findings in:
cmd/packagesfuncs.go
context.go
modernize
slices.Backward suggestions in:
modules/caddyhttp/routes.go
modules/caddyhttp/server.go
- https://github.com/caddyserver/caddy/actions/runs/25268991738/job/74088187876
I think this should be tracked separately because there are two related concerns:
- the workflow is currently non-deterministic because it follows
latest
- several of the new findings appear valid enough to clean up rather than only suppress
A reasonable fix may be to pin golangci-lint to a known-good version first then clean up the new findings and intentionally bump the pinned version afterwards.
Assistance Disclosure
AI not used
If AI was used, describe the extent to which it was used.
No response
Issue Details
The lint workflow is currently failing because
golangci/golangci-lint-actionis configured withversion: latestand the action has recently resolved that togolangci-lint v2.12.1.That version is now reporting repo-wide findings across
gosec,govetandmodernizecausing the lint job to fail.Current findings include:
gosecG124cookie attribute findings in:modules/caddyhttp/fileserver/browse.gomodules/caddyhttp/reverseproxy/selectionpolicies.goG710open redirect taint finding in:modules/caddyhttp/fileserver/staticfiles.gogovetreflect.Ptrinline constant findings in:cmd/packagesfuncs.gocontext.gomodernizeslices.Backwardsuggestions in:modules/caddyhttp/routes.gomodules/caddyhttp/server.goI think this should be tracked separately because there are two related concerns:
latestA reasonable fix may be to pin
golangci-lintto a known-good version first then clean up the new findings and intentionally bump the pinned version afterwards.Assistance Disclosure
AI not used
If AI was used, describe the extent to which it was used.
No response