>>> gosec: Building community/gosec 2.30.0-r0 (using abuild 3.18.0_rc7-r1) started Sat, 24 Oct 2026 22:53:51 +0000 >>> gosec: Validating /home/buildozer/aports/community/gosec/APKBUILD... >>> gosec: Analyzing dependencies... >>> gosec: Installing for build: build-base go (1/2) Installing go (1.27.3-r0) (2/2) Installing .makedepends-gosec (20261024.225351) Executing busybox-1.38.0-r7.trigger OK: 597.2 MiB in 107 packages >>> gosec: Cleaning up srcdir >>> gosec: Cleaning up pkgdir >>> gosec: Cleaning up tmpdir >>> gosec: Fetching https://distfiles.alpinelinux.org/distfiles/edge/gosec-2.30.0.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> gosec: Fetching gosec-2.30.0.tar.gz::https://github.com/securego/gosec/archive/refs/tags/v2.30.0.tar.gz Connecting to github.com (140.82.121.4:443) Connecting to codeload.github.com (140.82.121.9:443) saving to '/var/cache/distfiles/edge/gosec-2.30.0.tar.gz.part' gosec-2.30.0.tar.gz. 100% |********************************| 409k 0:00:00 ETA '/var/cache/distfiles/edge/gosec-2.30.0.tar.gz.part' saved /var/cache/distfiles/edge/gosec-2.30.0.tar.gz: OK /home/buildozer/aports/community/gosec/do-not-invoke-git.patch: OK >>> gosec: Fetching https://distfiles.alpinelinux.org/distfiles/edge/gosec-2.30.0.tar.gz /var/cache/distfiles/edge/gosec-2.30.0.tar.gz: OK /home/buildozer/aports/community/gosec/do-not-invoke-git.patch: OK >>> gosec: Unpacking /var/cache/distfiles/edge/gosec-2.30.0.tar.gz... >>> gosec: do-not-invoke-git.patch patching file Makefile make build make[1]: Entering directory '/home/buildozer/aports/community/gosec/src/gosec-2.30.0' go build -ldflags " -X 'main.Version=2.30.0' -X 'main.GitTag=2.30.0' -X 'main.BuildDate=2026-10-24'" -o gosec ./cmd/gosec/ go: downloading go.yaml.in/yaml/v3 v3.0.5 go: downloading github.com/gookit/color v1.6.3 go: downloading github.com/google/uuid v1.6.0 go: downloading github.com/anthropics/anthropic-sdk-go v1.82.0 go: downloading github.com/openai/openai-go/v3 v3.82.0 go: downloading golang.org/x/tools v0.52.0 go: downloading google.golang.org/genai v1.75.0 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/ccojocar/zxcvbn-go v1.0.4 go: downloading github.com/xo/terminfo v1.2.0 go: downloading github.com/google/go-cmp v0.7.0 go: downloading cloud.google.com/go/auth v0.24.1 go: downloading github.com/gorilla/websocket v1.5.3 go: downloading cloud.google.com/go v0.123.0 go: downloading github.com/googleapis/gax-go/v2 v2.26.2 go: downloading google.golang.org/api v0.304.0 go: downloading cloud.google.com/go/compute/metadata v0.10.0 go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 go: downloading google.golang.org/grpc v1.84.0 go: downloading go.opentelemetry.io/otel/trace v1.47.0 go: downloading github.com/googleapis/enterprise-certificate-proxy v0.3.23 go: downloading github.com/google/s2a-go v0.1.11 go: downloading go.opentelemetry.io/otel v1.47.0 go: downloading golang.org/x/net v0.61.0 go: downloading google.golang.org/protobuf v1.36.12 go: downloading go.opentelemetry.io/otel/metric v1.47.0 go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20261012220534-4341edf3f941 go: downloading github.com/felixge/httpsnoop v1.1.0 go: downloading github.com/tidwall/sjson v1.2.5 go: downloading github.com/tidwall/gjson v1.20.0 go: downloading github.com/invopop/jsonschema v0.14.0 go: downloading github.com/standard-webhooks/standard-webhooks/libraries v0.0.1 go: downloading github.com/pb33f/ordered-map/v2 v2.3.2 go: downloading golang.org/x/crypto v0.58.0 go: downloading github.com/coder/websocket v1.8.15 go: downloading github.com/tidwall/match v1.2.0 go: downloading github.com/tidwall/pretty v1.2.2 go: downloading github.com/bahlo/generic-list-go v0.2.0 go: downloading github.com/buger/jsonparser v1.6.1 go: downloading golang.org/x/mod v0.42.0 go: downloading github.com/pb33f/go-yaml v0.1.1 go: downloading golang.org/x/text v0.43.0 go: downloading golang.org/x/sys v0.49.0 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/go-logr/logr v1.4.4 go: downloading go.opentelemetry.io/otel/log v1.47.0 go: downloading github.com/go-logr/stdr v1.2.2 go: downloading go.opentelemetry.io/auto/sdk v1.2.1 make[1]: Leaving directory '/home/buildozer/aports/community/gosec/src/gosec-2.30.0' go: downloading github.com/onsi/ginkgo/v2 v2.33.1 go: downloading github.com/go-task/slim-sprig/v3 v3.0.0 go: downloading github.com/Masterminds/semver/v3 v3.5.0 go: downloading github.com/google/pprof v0.0.0-20261016150608-1facf8f91b50 go: downloading github.com/onsi/gomega v1.44.0 go: downloading github.com/stretchr/testify v1.12.1 Running Suite: gosec Suite - /home/buildozer/aports/community/gosec/src/gosec-2.30.0 ==================================================================================== Random Seed: 1792882494 Will run 306 of 306 specs ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should create a filter with single rule github.com/securego/gosec/v2/path_filter_test.go:16 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should create a filter with multiple rules github.com/securego/gosec/v2/path_filter_test.go:25 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with valid rules should handle empty rules slice github.com/securego/gosec/v2/path_filter_test.go:36 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with invalid rules should reject empty path github.com/securego/gosec/v2/path_filter_test.go:44 • [0.000 seconds] ------------------------------ PathExclusionFilter NewPathExclusionFilter with invalid rules should reject invalid regex github.com/securego/gosec/v2/path_filter_test.go:53 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should exclude matching path and rule github.com/securego/gosec/v2/path_filter_test.go:78 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should not exclude matching path with non-matching rule github.com/securego/gosec/v2/path_filter_test.go:83 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should not exclude non-matching path github.com/securego/gosec/v2/path_filter_test.go:88 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with specific rule exclusions should handle nested paths correctly github.com/securego/gosec/v2/path_filter_test.go:93 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with wildcard rule exclusion should exclude any rule for matching path github.com/securego/gosec/v2/path_filter_test.go:111 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with wildcard rule exclusion should not exclude non-matching paths github.com/securego/gosec/v2/path_filter_test.go:118 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with Windows-style paths should normalize backslashes to forward slashes github.com/securego/gosec/v2/path_filter_test.go:133 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with nil or empty filter should not exclude anything with nil filter github.com/securego/gosec/v2/path_filter_test.go:140 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with nil or empty filter should not exclude anything with empty rules github.com/securego/gosec/v2/path_filter_test.go:145 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match test files github.com/securego/gosec/v2/path_filter_test.go:163 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match cmd or tools prefix github.com/securego/gosec/v2/path_filter_test.go:169 • [0.000 seconds] ------------------------------ PathExclusionFilter ShouldExclude with complex regex patterns should match mock/fake/stub directories github.com/securego/gosec/v2/path_filter_test.go:175 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should filter matching issues github.com/securego/gosec/v2/path_filter_test.go:198 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should handle empty issues slice github.com/securego/gosec/v2/path_filter_test.go:212 • [0.000 seconds] ------------------------------ PathExclusionFilter FilterIssues should preserve issue order github.com/securego/gosec/v2/path_filter_test.go:218 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should parse single rule github.com/securego/gosec/v2/path_filter_test.go:236 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should parse multiple rules separated by semicolon github.com/securego/gosec/v2/path_filter_test.go:244 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should handle wildcard rule github.com/securego/gosec/v2/path_filter_test.go:254 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should handle empty input github.com/securego/gosec/v2/path_filter_test.go:261 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with valid input should trim whitespace github.com/securego/gosec/v2/path_filter_test.go:267 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject missing colon separator github.com/securego/gosec/v2/path_filter_test.go:277 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject empty path github.com/securego/gosec/v2/path_filter_test.go:283 • [0.000 seconds] ------------------------------ PathExclusionFilter ParseCLIExcludeRules with invalid input should reject empty rules github.com/securego/gosec/v2/path_filter_test.go:289 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should merge CLI and config rules with CLI first github.com/securego/gosec/v2/path_filter_test.go:298 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should handle empty CLI rules github.com/securego/gosec/v2/path_filter_test.go:312 • [0.000 seconds] ------------------------------ PathExclusionFilter MergeExcludeRules should handle empty config rules github.com/securego/gosec/v2/path_filter_test.go:321 • [0.000 seconds] ------------------------------ ReportInfo NewReportInfo should create a report with issues, metrics, and errors github.com/securego/gosec/v2/report_test.go:13 • [0.000 seconds] ------------------------------ ReportInfo NewReportInfo should handle empty issues github.com/securego/gosec/v2/report_test.go:35 • [0.000 seconds] ------------------------------ ReportInfo NewReportInfo should handle nil metrics and errors github.com/securego/gosec/v2/report_test.go:44 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should set the gosec version github.com/securego/gosec/v2/report_test.go:56 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should overwrite existing version github.com/securego/gosec/v2/report_test.go:64 • [0.000 seconds] ------------------------------ ReportInfo WithVersion should allow empty version string github.com/securego/gosec/v2/report_test.go:72 • [0.000 seconds] ------------------------------ Cli vflag test value must be empty as parameter value contains invalid character github.com/securego/gosec/v2/flag_test.go:15 • [0.000 seconds] invalid value "-incorrect" for flag -flag1: flag value cannot start with - Usage of flag1: -flag1 value ------------------------------ Cli vflag test value must be empty as parameter value contains invalid character without equal sign github.com/securego/gosec/v2/flag_test.go:25 invalid value " -incorrect" for flag -test2: flag value cannot start with - Usage of test2: -test2 value • [0.000 seconds] ------------------------------ Cli vflag test value must not be empty as parameter value contains valid character github.com/securego/gosec/v2/flag_test.go:35 • [0.000 seconds] ------------------------------ Error when creating errors should create a new error with correct fields github.com/securego/gosec/v2/errors_test.go:12 • [0.000 seconds] ------------------------------ Error when creating errors should handle zero values github.com/securego/gosec/v2/errors_test.go:20 • [0.000 seconds] ------------------------------ Error when creating errors should handle negative line and column numbers github.com/securego/gosec/v2/errors_test.go:28 • [0.000 seconds] ------------------------------ Helpers when listing package paths should return the root directory as package path github.com/securego/gosec/v2/helpers_test.go:25 • [0.001 seconds] ------------------------------ Helpers when listing package paths should return the package path github.com/securego/gosec/v2/helpers_test.go:30 • [0.001 seconds] ------------------------------ Helpers when listing package paths should exclude folder github.com/securego/gosec/v2/helpers_test.go:35 • [0.001 seconds] ------------------------------ Helpers when listing package paths should exclude folder with subpath github.com/securego/gosec/v2/helpers_test.go:47 • [0.001 seconds] ------------------------------ Helpers when listing package paths should be empty when folder does not exist github.com/securego/gosec/v2/helpers_test.go:59 • [0.000 seconds] ------------------------------ Helpers when getting the root path should return the absolute path from relative path github.com/securego/gosec/v2/helpers_test.go:68 • [0.000 seconds] ------------------------------ Helpers when getting the root path should return the absolute path from ellipsis path github.com/securego/gosec/v2/helpers_test.go:76 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create a proper regexp github.com/securego/gosec/v2/helpers_test.go:87 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create a proper regexp for dir with subdir github.com/securego/gosec/v2/helpers_test.go:96 • [0.000 seconds] ------------------------------ Helpers when excluding the dirs should create no regexp when dir list is empty github.com/securego/gosec/v2/helpers_test.go:107 • [0.000 seconds] ------------------------------ Helpers when getting call info should return the type and call name for selector expression github.com/securego/gosec/v2/helpers_test.go:116 • [0.152 seconds] ------------------------------ Helpers when getting call info should return the type and call name for new selector expression github.com/securego/gosec/v2/helpers_test.go:150 • [0.189 seconds] ------------------------------ Helpers when getting call info should return the type and call name for function selector expression github.com/securego/gosec/v2/helpers_test.go:183 • [0.123 seconds] ------------------------------ Helpers when getting call info should return the type and call name for package function github.com/securego/gosec/v2/helpers_test.go:220 • [0.195 seconds] ------------------------------ Helpers when getting call info should return the type and call name when built-in new function is overridden github.com/securego/gosec/v2/helpers_test.go:250 • [0.111 seconds] ------------------------------ Helpers when getting binary expression operands should return all operands of a binary expression github.com/securego/gosec/v2/helpers_test.go:283 • [0.172 seconds] ------------------------------ Helpers when getting binary expression operands should return all operands of complex binary expression github.com/securego/gosec/v2/helpers_test.go:313 • [0.184 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should return an empty slice when no tags are provided github.com/securego/gosec/v2/helpers_test.go:348 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should return a single -tags flag when one tag is provided github.com/securego/gosec/v2/helpers_test.go:353 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should combine multiple tags into a single -tags flag github.com/securego/gosec/v2/helpers_test.go:358 • [0.000 seconds] ------------------------------ Helpers when transforming build tags to cli build flags should trim and ignore empty tags github.com/securego/gosec/v2/helpers_test.go:363 • [0.000 seconds] ------------------------------ Helpers when finding module root should find go.mod in parent directory github.com/securego/gosec/v2/helpers_test.go:370 • [0.000 seconds] ------------------------------ Helpers when finding module root should find nearest go.mod in nested module github.com/securego/gosec/v2/helpers_test.go:384 • [0.000 seconds] ------------------------------ Helpers when getting integer values should extract integer from BasicLit github.com/securego/gosec/v2/helpers_test.go:407 • [0.118 seconds] ------------------------------ Helpers when getting integer values should return error for non-integer node github.com/securego/gosec/v2/helpers_test.go:434 • [0.127 seconds] ------------------------------ Helpers when getting float values should extract float from BasicLit github.com/securego/gosec/v2/helpers_test.go:463 • [0.111 seconds] ------------------------------ Helpers when getting float values should return error for non-float node github.com/securego/gosec/v2/helpers_test.go:490 • [0.099 seconds] ------------------------------ Helpers when getting char values should extract char from BasicLit github.com/securego/gosec/v2/helpers_test.go:519 • [0.131 seconds] ------------------------------ Helpers when getting char values should return error for non-char node github.com/securego/gosec/v2/helpers_test.go:546 • [0.107 seconds] ------------------------------ Helpers when getting string recursively should extract concatenated strings from binary expression github.com/securego/gosec/v2/helpers_test.go:575 • [0.134 seconds] ------------------------------ Helpers when getting string recursively should extract string from basic literal github.com/securego/gosec/v2/helpers_test.go:602 • [0.130 seconds] ------------------------------ Helpers when getting string recursively should return empty string for non-string node github.com/securego/gosec/v2/helpers_test.go:629 • [0.132 seconds] ------------------------------ Helpers when matching composite literals should match composite literal by type github.com/securego/gosec/v2/helpers_test.go:660 • [0.340 seconds] ------------------------------ Helpers when matching composite literals should return nil for non-matching type github.com/securego/gosec/v2/helpers_test.go:685 • [0.340 seconds] ------------------------------ Helpers when getting call objects should get call object for identifier github.com/securego/gosec/v2/helpers_test.go:712 • [0.142 seconds] ------------------------------ Helpers when getting call objects should get call object for selector expression github.com/securego/gosec/v2/helpers_test.go:737 • [0.183 seconds] ------------------------------ Helpers when getting call objects should return nil for non-call expression github.com/securego/gosec/v2/helpers_test.go:762 • [0.112 seconds] ------------------------------ Helpers when getting location information should return file name and line number from AST node github.com/securego/gosec/v2/helpers_test.go:791 • [0.113 seconds] ------------------------------ Helpers when working with environment variables should return environment variable value if set github.com/securego/gosec/v2/helpers_test.go:819 • [0.000 seconds] ------------------------------ Helpers when working with environment variables should return default value if environment variable not set github.com/securego/gosec/v2/helpers_test.go:827 • [0.000 seconds] ------------------------------ Helpers when working with environment variables should return default value for empty environment variable github.com/securego/gosec/v2/helpers_test.go:832 • [0.000 seconds] ------------------------------ Helpers when working with GOPATH should return list of GOPATHs github.com/securego/gosec/v2/helpers_test.go:842 • [0.000 seconds] ------------------------------ Helpers when working with GOPATH should return absolute paths github.com/securego/gosec/v2/helpers_test.go:847 • [0.000 seconds] ------------------------------ Helpers when getting package paths should return absolute path for existing directory github.com/securego/gosec/v2/helpers_test.go:856 • [0.000 seconds] ------------------------------ Helpers when getting package paths should return error for non-existent path github.com/securego/gosec/v2/helpers_test.go:866 • [0.000 seconds] ------------------------------ Helpers when getting package paths should handle relative paths github.com/securego/gosec/v2/helpers_test.go:871 • [0.000 seconds] ------------------------------ Helpers when getting call string arguments should extract string literals from call arguments github.com/securego/gosec/v2/helpers_test.go:880 • [0.162 seconds] ------------------------------ Helpers when getting call string arguments should extract string from identifier arguments github.com/securego/gosec/v2/helpers_test.go:906 • [0.175 seconds] ------------------------------ Helpers when getting call string arguments should return empty for non-string arguments github.com/securego/gosec/v2/helpers_test.go:935 • [0.164 seconds] ------------------------------ Helpers when getting identifier string values should resolve string from variable declaration github.com/securego/gosec/v2/helpers_test.go:962 • [0.128 seconds] ------------------------------ Helpers when getting identifier string values should resolve string from assignment statement github.com/securego/gosec/v2/helpers_test.go:989 • [0.116 seconds] ------------------------------ Helpers when getting identifier string values should resolve concatenated strings recursively github.com/securego/gosec/v2/helpers_test.go:1016 • [0.131 seconds] ------------------------------ Helpers when getting identifier string values should return empty for non-string identifiers github.com/securego/gosec/v2/helpers_test.go:1043 • [0.152 seconds] ------------------------------ Helpers when concatenating strings should concatenate literal strings github.com/securego/gosec/v2/helpers_test.go:1070 • [0.134 seconds] ------------------------------ Helpers when concatenating strings should concatenate strings from identifiers github.com/securego/gosec/v2/helpers_test.go:1099 • [0.135 seconds] ------------------------------ Helpers when concatenating strings should return false for non-addition operations github.com/securego/gosec/v2/helpers_test.go:1134 • [0.123 seconds] ------------------------------ Helpers when concatenating strings should handle nil expression github.com/securego/gosec/v2/helpers_test.go:1158 • [0.121 seconds] ------------------------------ Helpers when finding variable identities should find variables in binary expression github.com/securego/gosec/v2/helpers_test.go:1171 • [0.126 seconds] ------------------------------ Helpers when finding variable identities should return false when no variables found github.com/securego/gosec/v2/helpers_test.go:1206 • [0.113 seconds] ------------------------------ Helpers when finding variable identities should handle nested binary expressions github.com/securego/gosec/v2/helpers_test.go:1230 • [0.129 seconds] ------------------------------ Analyzer when processing a package should not report an error if the package contains no Go files github.com/securego/gosec/v2/analyzer_test.go:51 • [0.001 seconds] ------------------------------ Analyzer when processing a package should analyse a package in a nested module when run from the parent module github.com/securego/gosec/v2/analyzer_test.go:60 • [0.039 seconds] ------------------------------ Analyzer when processing a package should report an error if the package fails to build github.com/securego/gosec/v2/analyzer_test.go:82 • [0.001 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go files github.com/securego/gosec/v2/analyzer_test.go:98 • [0.233 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go files concurrently github.com/securego/gosec/v2/analyzer_test.go:125 • [0.225 seconds] ------------------------------ Analyzer when processing a package should not race when analyzing G304 patterns across many packages concurrently (issue #1586) github.com/securego/gosec/v2/analyzer_test.go:148 • [3.479 seconds] ------------------------------ Analyzer when processing a package should be able to analyze multiple Go packages github.com/securego/gosec/v2/analyzer_test.go:193 • [0.431 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:217 • [0.426 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:233 • [0.404 seconds] ------------------------------ Analyzer when processing a package should find errors when nosec is not in use github.com/securego/gosec/v2/analyzer_test.go:249 • [0.374 seconds] ------------------------------ Analyzer when processing a package should report Go build errors and invalid files github.com/securego/gosec/v2/analyzer_test.go:265 • [0.260 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:293 • [0.407 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:310 • [0.413 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:327 • [0.399 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:344 • [0.384 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec line comment is present github.com/securego/gosec/v2/analyzer_test.go:361 • [0.376 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive is present github.com/securego/gosec/v2/analyzer_test.go:378 • [0.382 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:395 • [0.424 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:412 • [0.376 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block comment is present github.com/securego/gosec/v2/analyzer_test.go:429 • [0.373 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:446 • [0.408 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:464 • [0.411 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:482 • [0.386 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:500 • [0.414 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:518 • [0.356 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for the correct rule github.com/securego/gosec/v2/analyzer_test.go:536 • [0.382 seconds] ------------------------------ Analyzer when processing a package should not report errors when a nosec block and line comment are present github.com/securego/gosec/v2/analyzer_test.go:554 • [0.351 seconds] ------------------------------ Analyzer when processing a package should not report errors when only a nosec block is present github.com/securego/gosec/v2/analyzer_test.go:569 • [0.330 seconds] ------------------------------ Analyzer when processing a package should not report errors when a single line nosec is present on a multi-line issue github.com/securego/gosec/v2/analyzer_test.go:584 • [0.771 seconds] ------------------------------ Analyzer when processing a package should not report errors when a disable directive block and line comment are present github.com/securego/gosec/v2/analyzer_test.go:600 • [0.345 seconds] ------------------------------ Analyzer when processing a package should not report errors when only a disable directive block is present github.com/securego/gosec/v2/analyzer_test.go:615 • [0.318 seconds] ------------------------------ Analyzer when processing a package should not report errors when a single line nosec is present on a multi-line issue github.com/securego/gosec/v2/analyzer_test.go:630 • [0.776 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:646 • [0.386 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:663 • [0.425 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:680 • [0.392 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:697 • [0.389 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:714 • [0.354 seconds] ------------------------------ Analyzer when processing a package should report errors when an exclude comment is present for a different rule github.com/securego/gosec/v2/analyzer_test.go:731 • [0.382 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:748 • [0.595 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:767 • [0.620 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:786 • [0.574 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:805 • [0.557 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:824 • [0.512 seconds] ------------------------------ Analyzer when processing a package should not report errors when an exclude comment is present for multiple rules, including the correct rule github.com/securego/gosec/v2/analyzer_test.go:843 • [0.534 seconds] ------------------------------ Analyzer when processing a package should not panic if a file can not compile github.com/securego/gosec/v2/analyzer_test.go:862 • [0.246 seconds] ------------------------------ Analyzer when processing a package should exclude a reportable file, if excluded by build tags github.com/securego/gosec/v2/analyzer_test.go:876 • [0.002 seconds] ------------------------------ Analyzer when processing a package should attempt to analyse a file with build tags github.com/securego/gosec/v2/analyzer_test.go:895 • [0.355 seconds] ------------------------------ Analyzer when processing a package should report issues from a file with build tags github.com/securego/gosec/v2/analyzer_test.go:916 • [0.401 seconds] ------------------------------ Analyzer when processing a package should process an empty package with test file github.com/securego/gosec/v2/analyzer_test.go:937 • [0.917 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:952 • [0.389 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive, and report issues github.com/securego/gosec/v2/analyzer_test.go:975 • [0.397 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:998 • [0.369 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:1021 • [0.375 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:1044 • [0.373 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite disable directive comments, and report issues github.com/securego/gosec/v2/analyzer_test.go:1067 • [0.347 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1090 • [0.410 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1116 • [0.397 seconds] ------------------------------ Analyzer when processing a package should be possible to overwrite nosec comments, and report issues but they should not be counted github.com/securego/gosec/v2/analyzer_test.go:1142 • [0.365 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1168 • [0.407 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1185 • [0.434 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1202 • [0.424 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1219 • [0.377 seconds] ------------------------------ Analyzer when processing a package should not report errors when nosec tag is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1236 • [0.383 seconds] ------------------------------ Analyzer when processing a package should not report errors when disable directive is in front of a line github.com/securego/gosec/v2/analyzer_test.go:1253 • [0.348 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1270 • [0.406 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1287 • [0.402 seconds] ------------------------------ Analyzer when processing a package should report errors when nosec tag is not in front of a line github.com/securego/gosec/v2/analyzer_test.go:1304 • [0.380 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1321 • [0.413 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1338 • [0.434 seconds] ------------------------------ Analyzer when processing a package should not report errors when rules are in front of nosec tag even rules are wrong github.com/securego/gosec/v2/analyzer_test.go:1355 • [0.383 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1372 • [0.390 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1389 • [0.422 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1406 • [0.422 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1423 • [0.419 seconds] ------------------------------ Analyzer when processing a package should report errors when there are nosec tags after a #nosec WrongRuleList annotation github.com/securego/gosec/v2/analyzer_test.go:1440 • [0.363 seconds] ------------------------------ Analyzer when processing a package should report errors when there are disable directives after a //gosec:disable WrongRuleList github.com/securego/gosec/v2/analyzer_test.go:1457 • [0.354 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1474 • [0.404 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag which already starts with a hash github.com/securego/gosec/v2/analyzer_test.go:1497 • [0.364 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1520 • [0.384 seconds] ------------------------------ Analyzer when processing a package should be possible to use an alternative nosec tag github.com/securego/gosec/v2/analyzer_test.go:1543 • [0.357 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1566 • [0.406 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1589 • [0.375 seconds] ------------------------------ Analyzer when processing a package should ignore vulnerabilities when the default tag is found github.com/securego/gosec/v2/analyzer_test.go:1612 • [0.362 seconds] ------------------------------ Analyzer when processing a package should be able to analyze Go test package github.com/securego/gosec/v2/analyzer_test.go:1635 • [0.358 seconds] ------------------------------ Analyzer when processing a package should be able to scan generated files if NOT excluded when using the rules github.com/securego/gosec/v2/analyzer_test.go:1660 • [0.059 seconds] ------------------------------ Analyzer when processing a package should be able to skip generated files if excluded when using the rules github.com/securego/gosec/v2/analyzer_test.go:1681 • [0.057 seconds] ------------------------------ Analyzer when processing a package should be able to scan generated files if NOT excluded when using the analyzes github.com/securego/gosec/v2/analyzer_test.go:1702 • [0.349 seconds] ------------------------------ Analyzer when processing a package should be able to skip generated files if excluded when using the analyzes github.com/securego/gosec/v2/analyzer_test.go:1725 • [0.399 seconds] ------------------------------ Analyzer should be able to analyze Cgo files github.com/securego/gosec/v2/analyzer_test.go:1749 • [0.991 seconds] ------------------------------ Analyzer when parsing errors from a package should return no error when the error list is empty github.com/securego/gosec/v2/analyzer_test.go:1766 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors github.com/securego/gosec/v2/analyzer_test.go:1772 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors without line and column github.com/securego/gosec/v2/analyzer_test.go:1792 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors without column github.com/securego/gosec/v2/analyzer_test.go:1812 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should return error when line cannot be parsed github.com/securego/gosec/v2/analyzer_test.go:1832 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should return error when column cannot be parsed github.com/securego/gosec/v2/analyzer_test.go:1845 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should properly parse the errors with colons in path github.com/securego/gosec/v2/analyzer_test.go:1858 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should append error to the same file github.com/securego/gosec/v2/analyzer_test.go:1882 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should set the config github.com/securego/gosec/v2/analyzer_test.go:1909 • [0.000 seconds] ------------------------------ Analyzer when parsing errors from a package should reset the analyzer github.com/securego/gosec/v2/analyzer_test.go:1917 • [0.000 seconds] ------------------------------ Analyzer when appending errors should skip error for non-buildable packages github.com/securego/gosec/v2/analyzer_test.go:1927 • [0.001 seconds] ------------------------------ Analyzer when appending errors should add a new error github.com/securego/gosec/v2/analyzer_test.go:1936 • [0.000 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1952 • [0.398 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1972 • [0.401 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:1992 • [0.404 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:2012 • [0.399 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:2032 • [0.392 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed github.com/securego/gosec/v2/analyzer_test.go:2052 • [0.379 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2072 • [0.424 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2092 • [0.396 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2112 • [0.362 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2132 • [0.379 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2152 • [0.347 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed without certain rules github.com/securego/gosec/v2/analyzer_test.go:2172 • [0.372 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the rule is not included github.com/securego/gosec/v2/analyzer_test.go:2192 • [0.347 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the rule is excluded github.com/securego/gosec/v2/analyzer_test.go:2211 • [0.325 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is not included github.com/securego/gosec/v2/analyzer_test.go:2230 • [0.401 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is excluded github.com/securego/gosec/v2/analyzer_test.go:2249 • [0.361 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is not included github.com/securego/gosec/v2/analyzer_test.go:2268 • [0.331 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the analyzer is excluded github.com/securego/gosec/v2/analyzer_test.go:2287 • [0.311 seconds] ------------------------------ Analyzer when tracking suppressions should track multiple suppressions if the violation is multiply suppressed github.com/securego/gosec/v2/analyzer_test.go:2306 • [0.335 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on a struct filed github.com/securego/gosec/v2/analyzer_test.go:2324 • [0.679 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on a struct filed github.com/securego/gosec/v2/analyzer_test.go:2345 • [0.742 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on multi-lien issue github.com/securego/gosec/v2/analyzer_test.go:2366 • [0.348 seconds] ------------------------------ Analyzer when tracking suppressions should not report an error if the violation is suppressed on multi-lien issue github.com/securego/gosec/v2/analyzer_test.go:2397 • [0.324 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 when #nosec is at the end of an if line with bracket github.com/securego/gosec/v2/analyzer_test.go:2430 • [0.331 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 when #nosec is used with block comment before bracket github.com/securego/gosec/v2/analyzer_test.go:2469 • [0.347 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 in for loop with bracket and trailing comment github.com/securego/gosec/v2/analyzer_test.go:2501 • [0.238 seconds] ------------------------------ Analyzer when fixing issue #1240 - nosec with open bracket should suppress G115 in switch statement with bracket and trailing comment github.com/securego/gosec/v2/analyzer_test.go:2529 • [0.263 seconds] ------------------------------ Analyzer when using public API methods should have CheckRules method available github.com/securego/gosec/v2/analyzer_test.go:2560 • [0.206 seconds] ------------------------------ Analyzer when using public API methods should have CheckAnalyzers method available github.com/securego/gosec/v2/analyzer_test.go:2591 • [0.147 seconds] ------------------------------ Analyzer when using public API methods should handle CheckRules with no rules loaded github.com/securego/gosec/v2/analyzer_test.go:2621 • [0.150 seconds] ------------------------------ Analyzer when using public API methods should handle CheckAnalyzers with no analyzers loaded github.com/securego/gosec/v2/analyzer_test.go:2643 • [0.124 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses naked nosec when require-rules is disabled (default) github.com/securego/gosec/v2/analyzer_test.go:2696 • [0.390 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress naked nosec when require-rules is enabled, and reports an error github.com/securego/gosec/v2/analyzer_test.go:2702 • [0.401 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress legacy `block` directive when require-rules is enabled github.com/securego/gosec/v2/analyzer_test.go:2710 • [0.416 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses directive with rule ID when require-rules is enabled github.com/securego/gosec/v2/analyzer_test.go:2718 • [0.380 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress directive without justification when require-justification is enabled github.com/securego/gosec/v2/analyzer_test.go:2726 • [0.378 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives does not suppress directive with empty justification when require-justification is enabled github.com/securego/gosec/v2/analyzer_test.go:2734 • [0.419 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives suppresses directive with rule ID and justification when both options are enabled github.com/securego/gosec/v2/analyzer_test.go:2742 • [0.393 seconds] ------------------------------ Analyzer when requiring rule IDs and justifications in nosec directives enforces the same rules for the //gosec:disable form github.com/securego/gosec/v2/analyzer_test.go:2751 • [0.365 seconds] ------------------------------ Configuration when loading from disk should be possible to load configuration from a file github.com/securego/gosec/v2/config_test.go:20 • [0.000 seconds] ------------------------------ Configuration when loading from disk should return an error if configuration file is invalid github.com/securego/gosec/v2/config_test.go:28 • [0.000 seconds] ------------------------------ Configuration when saving to disk should be possible to save an empty configuration to file github.com/securego/gosec/v2/config_test.go:41 • [0.000 seconds] ------------------------------ Configuration when saving to disk should be possible to save configuration to file github.com/securego/gosec/v2/config_test.go:50 • [0.000 seconds] ------------------------------ Configuration when configuring rules should be possible to get configuration for a rule github.com/securego/gosec/v2/config_test.go:64 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should have a default global section github.com/securego/gosec/v2/config_test.go:78 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should save global settings to correct section github.com/securego/gosec/v2/config_test.go:85 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should find global settings which are enabled github.com/securego/gosec/v2/config_test.go:100 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should parse the global settings of type string from file github.com/securego/gosec/v2/config_test.go:107 • [0.000 seconds] ------------------------------ Configuration when using global configuration options should parse the global settings of other types from file github.com/securego/gosec/v2/config_test.go:122 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should set and get exclude rules github.com/securego/gosec/v2/config_test.go:140 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should handle empty exclude rules github.com/securego/gosec/v2/config_test.go:156 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should overwrite previous exclude rules github.com/securego/gosec/v2/config_test.go:164 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should persist exclude rules in configuration github.com/securego/gosec/v2/config_test.go:179 • [0.000 seconds] ------------------------------ Configuration when managing exclude rules should handle nil configuration gracefully github.com/securego/gosec/v2/config_test.go:200 • [0.000 seconds] ------------------------------ Configuration when building the nosec tag should prepend a hash to a bare tag github.com/securego/gosec/v2/config_test.go:211 • [0.000 seconds] ------------------------------ Configuration when building the nosec tag should not double the hash of an already prefixed tag github.com/securego/gosec/v2/config_test.go:215 • [0.000 seconds] ------------------------------ Configuration when building the nosec tag should only trim a single leading hash github.com/securego/gosec/v2/config_test.go:219 • [0.000 seconds] ------------------------------ Configuration when building the nosec tag should keep hashes which are not leading github.com/securego/gosec/v2/config_test.go:223 • [0.000 seconds] ------------------------------ Call List should not return any matches when empty github.com/securego/gosec/v2/call_list_test.go:19 • [0.000 seconds] ------------------------------ Call List should be possible to add a single call github.com/securego/gosec/v2/call_list_test.go:23 • [0.000 seconds] ------------------------------ Call List should be possible to add multiple calls at once github.com/securego/gosec/v2/call_list_test.go:34 • [0.000 seconds] ------------------------------ Call List should be possible to add pointer call github.com/securego/gosec/v2/call_list_test.go:48 • [0.000 seconds] ------------------------------ Call List should be possible to check pointer call github.com/securego/gosec/v2/call_list_test.go:55 • [0.000 seconds] ------------------------------ Call List should not return a match if none are present github.com/securego/gosec/v2/call_list_test.go:62 • [0.000 seconds] ------------------------------ Call List should match a call based on selector and ident github.com/securego/gosec/v2/call_list_test.go:67 • [0.000 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:72 • [0.191 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:97 • [0.183 seconds] ------------------------------ Call List should match a package call expression github.com/securego/gosec/v2/call_list_test.go:122 • [0.172 seconds] ------------------------------ Call List should match a call expression github.com/securego/gosec/v2/call_list_test.go:147 • [0.214 seconds] ------------------------------ Import Tracker when tracking a file should parse the imports from file github.com/securego/gosec/v2/import_tracker_test.go:13 • [0.166 seconds] ------------------------------ Import Tracker when tracking a file should parse the named imports from file github.com/securego/gosec/v2/import_tracker_test.go:33 • [0.172 seconds] ------------------------------ Rule when using a ruleset should be possible to register a rule for multiple ast.Node github.com/securego/gosec/v2/rule_test.go:59 • [0.000 seconds] ------------------------------ Rule when using a ruleset should not register a rule when no ast.Nodes are specified github.com/securego/gosec/v2/rule_test.go:71 • [0.000 seconds] ------------------------------ Rule when using a ruleset should be possible to retrieve a list of rules for a given node type github.com/securego/gosec/v2/rule_test.go:76 • [0.000 seconds] ------------------------------ Rule when using a ruleset should register a suppressed rule github.com/securego/gosec/v2/rule_test.go:87 • [0.000 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve basic literal github.com/securego/gosec/v2/resolve_test.go:15 • [0.135 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve identifier github.com/securego/gosec/v2/resolve_test.go:35 • [0.123 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve variable identifier github.com/securego/gosec/v2/resolve_test.go:55 • [0.189 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve variable identifier with no declaration github.com/securego/gosec/v2/resolve_test.go:75 • [0.171 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve assign statement github.com/securego/gosec/v2/resolve_test.go:96 • [0.124 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve assign statement without rhs github.com/securego/gosec/v2/resolve_test.go:117 • [0.120 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve assign statement with unsolvable rhs github.com/securego/gosec/v2/resolve_test.go:139 • [0.146 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve a binary statement github.com/securego/gosec/v2/resolve_test.go:161 • [0.116 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve value spec github.com/securego/gosec/v2/resolve_test.go:180 • [0.122 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve value spec without values github.com/securego/gosec/v2/resolve_test.go:200 • [0.114 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve value spec with unsolvable value github.com/securego/gosec/v2/resolve_test.go:222 • [0.095 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully resolve composite literal github.com/securego/gosec/v2/resolve_test.go:244 • [0.123 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve composite literal without elst github.com/securego/gosec/v2/resolve_test.go:263 • [0.113 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve composite literal with unsolvable elst github.com/securego/gosec/v2/resolve_test.go:283 • [0.116 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve call expressions github.com/securego/gosec/v2/resolve_test.go:303 • [0.122 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should successfully not resolve call expressions github.com/securego/gosec/v2/resolve_test.go:322 • [0.190 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should resolve a constant from another package github.com/securego/gosec/v2/resolve_test.go:341 • [0.179 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a variable from another package github.com/securego/gosec/v2/resolve_test.go:361 • [0.179 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should resolve a typed constant conversion github.com/securego/gosec/v2/resolve_test.go:381 • [0.128 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should resolve a strings.Builder built only from constants github.com/securego/gosec/v2/resolve_test.go:403 • [0.140 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should resolve a *strings.Builder literal built only from constants github.com/securego/gosec/v2/resolve_test.go:426 • [0.137 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should resolve a bytes.Buffer built only from constants github.com/securego/gosec/v2/resolve_test.go:449 • [0.146 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a builder written with non-constant input github.com/securego/gosec/v2/resolve_test.go:472 • [0.175 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a builder whose address escapes github.com/securego/gosec/v2/resolve_test.go:495 • [0.192 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a builder from an opaque initializer github.com/securego/gosec/v2/resolve_test.go:518 • [0.140 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a builder written with an unsupported method github.com/securego/gosec/v2/resolve_test.go:541 • [0.148 seconds] ------------------------------ Resolve ast node to concrete value when attempting to resolve an ast node should not resolve a package-level builder github.com/securego/gosec/v2/resolve_test.go:564 • [0.128 seconds] ------------------------------ Ran 306 of 306 Specs in 62.184 seconds SUCCESS! -- 306 Passed | 0 Failed | 0 Pending | 0 Skipped PASS Ginkgo ran 1 suite in 1m6.714471251s Test Suite Passed >>> gosec: Entering fakeroot... >>> gosec*: Running postcheck for gosec >>> gosec*: Preparing package gosec... >>> gosec*: Stripping binaries >>> gosec*: Scanning shared objects >>> gosec*: Tracing dependencies... so:libc.musl-x86.so.1 >>> gosec*: Package size: 62.9 MB >>> gosec*: Compressing data... >>> gosec*: Create checksum... >>> gosec*: Create gosec-2.30.0-r0.apk >>> gosec: Build complete at Sat, 24 Oct 2026 22:56:02 +0000 elapsed time 0h 2m 11s >>> gosec: Cleaning up srcdir >>> gosec: Cleaning up pkgdir >>> gosec: Cleaning up tmpdir >>> gosec: Uninstalling dependencies... (1/2) Purging .makedepends-gosec (20261024.225351) (2/2) Purging go (1.27.3-r0) Executing busybox-1.38.0-r7.trigger OK: 427.4 MiB in 105 packages >>> gosec: Updating the community/x86 repository index... >>> gosec: Signing the index...