elastic-arm-16c3f6ed: building 8kawsic4lk8x63x267my9g1m4hb4agc9-golangci-lint.drv Running phase: unpackPhase unpacking source archive /nix/store/i90wf5n9gnalfkc9nzla52xmvwmhdkp9-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase Running phase: buildPhase WARN The linter 'wsl' is deprecated (since v2.2.0) due to: new major version. Replaced by wsl_v5. WARN [linter] `allow-multiline-assign` is deprecated and always allowed in wsl >= v5 WARN Suggested new configuration: linters: enable: - wsl_v5 settings: wsl_v5: allow-first-in-block: true allow-whole-block: false branch-max-lines: 2 cmd/set_token_test.go:176:19: string `test.example.com` has 18 occurrences, make it a constant (goconst) args: []string{"test.example.com", "test-token-123"}, ^ cmd/set_token_test.go:226:5: string `Successfully set token for test.example.com: ********` has 3 occurrences, make it a constant (goconst) "Successfully set token for test.example.com: ********", ^ cmd/set_token_test.go:297:24: string `test-provider` has 6 occurrences, make it a constant (goconst) setTokenProvider = "test-provider" ^ cmd/set_token_test.go:371:39: string `token` has 3 occurrences, make it a constant (goconst) args: []string{"test.example.com", "token"}, ^ cmd/status_test.go:44:15: string `github` has 4 occurrences, make it a constant (goconst) name: "github", ^ cmd/status_test.go:47:24: string `repo` has 4 occurrences, make it a constant (goconst) scopes: []string{"repo", "read:user"}, ^ cmd/status_test.go:53:15: string `github.com` has 4 occurrences, make it a constant (goconst) if host == "github.com" { ^ internal/nixconf/nixconf_integration_test.go:25:4: string `github.com` has 6 occurrences, make it a constant (goconst) {"github.com", "ghs_test123"}, ^ internal/nixconf/nixconf_integration_test.go:26:4: string `gitlab.com` has 6 occurrences, make it a constant (goconst) {"gitlab.com", "glpat_test456"}, ^ internal/nixconf/nixconf_integration_test.go:86:17: string `token1` has 3 occurrences, make it a constant (goconst) "github.com": "token1", ^ internal/nixconf/nixconf_integration_test.go:87:17: string `token2` has 3 occurrences, make it a constant (goconst) "gitlab.com": "token2", ^ internal/nixconf/nixconf_test.go:26:5: string `NIX_USER_CONF_FILES` has 4 occurrences, make it a constant (goconst) "NIX_USER_CONF_FILES": "/custom/path/nix.conf", ^ internal/nixconf/nixconf_test.go:112:24: string `github.com` has 6 occurrences, make it a constant (goconst) {"github.com token", "github.com", "ghp_testtoken123"}, ^ internal/nixconf/nixconf_test.go:113:24: string `gitlab.com` has 6 occurrences, make it a constant (goconst) {"gitlab.com token", "gitlab.com", "glpat-testtoken456"}, ^ internal/nixconf/nixconf_test.go:239:22: string `token1` has 3 occurrences, make it a constant (goconst) "github.com": "token1", ^ internal/nixconf/nixconf_test.go:240:22: string `token2` has 3 occurrences, make it a constant (goconst) "gitlab.com": "token2", ^ internal/provider/detection_helpers.go:17:18: string `codeberg.org` has 4 occurrences, make it a constant (goconst) if lowerHost == "codeberg.org" { ^ internal/provider/detection_helpers.go:20:19: string `forgejo` has 6 occurrences, make it a constant (goconst) providerName: "forgejo", ^ internal/provider/detection_helpers.go:28:18: string `gitea.com` has 5 occurrences, make it a constant (goconst) if lowerHost == "gitea.com" || lowerHost == "gitea.io" { ^ internal/provider/detection_helpers.go:31:19: string `gitea` has 5 occurrences, make it a constant (goconst) providerName: "gitea", ^ internal/provider/detection_test.go:32:22: string `unknown` has 3 occurrences, make it a constant (goconst) expectedProvider: "unknown", ^ internal/provider/forgejo.go:13:20: string `forgejo` has 6 occurrences, make it a constant (goconst) providerName: "forgejo", ^ internal/provider/forgejo.go:29:20: string `codeberg.org` has 4 occurrences, make it a constant (goconst) defaultHost: "codeberg.org", ^ internal/provider/pat_provider.go:55:3: string `Accept` has 3 occurrences, make it a constant (goconst) "Accept": "application/json", ^ internal/provider/provider.go:132:58: string `forgejo` has 6 occurrences, make it a constant (goconst) preferredOrder := []string{"github", "gitlab", "gitea", "forgejo"} ^ internal/provider/provider_test.go:29:15: string `mock` has 3 occurrences, make it a constant (goconst) name: "mock", ^ internal/provider/provider_test.go:145:22: string `unknown` has 3 occurrences, make it a constant (goconst) expectedProvider: "unknown", ^ internal/nixconf/nixconf.go:324:21: G703: Path traversal via taint analysis (gosec) return os.WriteFile(dst, input, perms) ^ internal/ui/token_test.go:84:3: G101: Potential hardcoded credentials (gosec) { name: "GitHub OAuth token", token: "gho_16C7e42F292c6912E7710c838347Ae178B4a", expected: "gho_******4a", }, internal/ui/token_test.go:89:3: G101: Potential hardcoded credentials (gosec) { name: "GitHub personal access token", token: "ghp_16C7e42F292c6912E7710c838347Ae178B4a", expected: "ghp_******4a", }, internal/ui/token_test.go:94:3: G101: Potential hardcoded credentials (gosec) { name: "GitHub server token", token: "ghs_16C7e42F292c6912E7710c838347Ae178B4a", expected: "ghs_******4a", }, internal/ui/token_test.go:99:3: G101: Potential hardcoded credentials (gosec) { name: "GitHub fine-grained PAT", token: "github_pat_11ABCDEF0_1234567890abcdef", expected: "github_pat_******ef", }, 32 issues: * goconst: 27 * gosec: 5