Repository navigation
ci: run release gosec via golangci-lint; bump to 0.4.7 - #43
Merged
Merged
Conversation
go install gosec@latest (v2.29.0) fails on the Go 1.27.2 toolchain with 'export data version 5 is greater than maximum supported version 4', so the v0.4.6 release run stopped before publishing. Run the gosec linter through golangci-lint v2.14.0 instead, on non-test code. Version bumped to 0.4.7 because v0.4.6 was tagged but not released.
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
go install gosec@latest(v2.29.0), which fails on the Go 1.27.2 toolchain:export data version 5 is greater than maximum supported version 4. The v0.4.6 tag run stopped there before publishing.--enable-only=gosec --tests=false(gosec on non-test code). This matches CI's lint job setup.-exclude=G304is dropped: the scan reports 0 issues with it not excluded.Makefile,main.go,debian/changelogandCHANGELOG.md. v0.4.6 is already tagged but was not released.Not in this PR
securego/gosecwith-no-fail, which hides analysis failures. Left unchanged.Testing
go test -count=1 ./...passesgolangci-lint run --no-configreports 0 issuesgolangci-lint run --no-config --enable-only=gosec --tests=falsereports 0 issues