nixbot

builds

failed golangci-lint checks.aarch64-darwin.golangci-lint · build #8 · raw

unpackPhase
1unpacking source archive /nix/store/liag7wk1ck3kr7jybaxlypxngic0cyar-source2source root is source
buildPhase
3WARN The linter 'wsl' is deprecated (since v2.2.0) due to: new major version. Replaced by wsl_v5. 4WARN [linter] `allow-multiline-assign` is deprecated and always allowed in wsl >= v5 5WARN Suggested new configuration:6linters:7 enable:8 - wsl_v59 settings:10 wsl_v5:11 allow-first-in-block: true12 allow-whole-block: false13 branch-max-lines: 2 14cmd/set_token_test.go:176:19: string `test.example.com` has 18 occurrences, make it a constant (goconst)15 args: []string{"test.example.com", "test-token-123"},16 ^17cmd/set_token_test.go:226:5: string `Successfully set token for test.example.com: ********` has 3 occurrences, make it a constant (goconst)18 "Successfully set token for test.example.com: ********",19 ^20cmd/set_token_test.go:297:24: string `test-provider` has 6 occurrences, make it a constant (goconst)21 setTokenProvider = "test-provider"22 ^23cmd/set_token_test.go:371:39: string `token` has 3 occurrences, make it a constant (goconst)24 args: []string{"test.example.com", "token"},25 ^26cmd/status_test.go:44:15: string `github` has 4 occurrences, make it a constant (goconst)27 name: "github",28 ^29cmd/status_test.go:47:24: string `repo` has 4 occurrences, make it a constant (goconst)30 scopes: []string{"repo", "read:user"},31 ^32cmd/status_test.go:53:15: string `github.com` has 4 occurrences, make it a constant (goconst)33 if host == "github.com" {34 ^35internal/nixconf/nixconf_integration_test.go:25:4: string `github.com` has 6 occurrences, make it a constant (goconst)36 {"github.com", "ghs_test123"},37 ^38internal/nixconf/nixconf_integration_test.go:26:4: string `gitlab.com` has 6 occurrences, make it a constant (goconst)39 {"gitlab.com", "glpat_test456"},40 ^41internal/nixconf/nixconf_integration_test.go:86:17: string `token1` has 3 occurrences, make it a constant (goconst)42 "github.com": "token1",43 ^44internal/nixconf/nixconf_integration_test.go:87:17: string `token2` has 3 occurrences, make it a constant (goconst)45 "gitlab.com": "token2",46 ^47internal/nixconf/nixconf_test.go:26:5: string `NIX_USER_CONF_FILES` has 4 occurrences, make it a constant (goconst)48 "NIX_USER_CONF_FILES": "/custom/path/nix.conf",49 ^50internal/nixconf/nixconf_test.go:112:24: string `github.com` has 6 occurrences, make it a constant (goconst)51 {"github.com token", "github.com", "ghp_testtoken123"},52 ^53internal/nixconf/nixconf_test.go:113:24: string `gitlab.com` has 6 occurrences, make it a constant (goconst)54 {"gitlab.com token", "gitlab.com", "glpat-testtoken456"},55 ^56internal/nixconf/nixconf_test.go:239:22: string `token1` has 3 occurrences, make it a constant (goconst)57 "github.com": "token1",58 ^59internal/nixconf/nixconf_test.go:240:22: string `token2` has 3 occurrences, make it a constant (goconst)60 "gitlab.com": "token2",61 ^62internal/provider/detection_helpers.go:17:18: string `codeberg.org` has 4 occurrences, make it a constant (goconst)63 if lowerHost == "codeberg.org" {64 ^65internal/provider/detection_helpers.go:20:19: string `forgejo` has 6 occurrences, make it a constant (goconst)66 providerName: "forgejo",67 ^68internal/provider/detection_helpers.go:28:18: string `gitea.com` has 5 occurrences, make it a constant (goconst)69 if lowerHost == "gitea.com" || lowerHost == "gitea.io" {70 ^71internal/provider/detection_helpers.go:31:19: string `gitea` has 5 occurrences, make it a constant (goconst)72 providerName: "gitea",73 ^74internal/provider/detection_test.go:32:22: string `unknown` has 3 occurrences, make it a constant (goconst)75 expectedProvider: "unknown",76 ^77internal/provider/forgejo.go:13:20: string `forgejo` has 6 occurrences, make it a constant (goconst)78 providerName: "forgejo",79 ^80internal/provider/forgejo.go:29:20: string `codeberg.org` has 4 occurrences, make it a constant (goconst)81 defaultHost: "codeberg.org",82 ^83internal/provider/pat_provider.go:55:3: string `Accept` has 3 occurrences, make it a constant (goconst)84 "Accept": "application/json",85 ^86internal/provider/provider.go:132:58: string `forgejo` has 6 occurrences, make it a constant (goconst)87 preferredOrder := []string{"github", "gitlab", "gitea", "forgejo"}88 ^89internal/provider/provider_test.go:29:15: string `mock` has 3 occurrences, make it a constant (goconst)90 name: "mock",91 ^92internal/provider/provider_test.go:145:22: string `unknown` has 3 occurrences, make it a constant (goconst)93 expectedProvider: "unknown",94 ^95internal/nixconf/nixconf.go:324:21: G703: Path traversal via taint analysis (gosec)96 return os.WriteFile(dst, input, perms)97 ^98internal/ui/token_test.go:84:3: G101: Potential hardcoded credentials (gosec)99 {100 name: "GitHub OAuth token",101 token: "gho_16C7e42F292c6912E7710c838347Ae178B4a",102 expected: "gho_******4a",103 },104internal/ui/token_test.go:89:3: G101: Potential hardcoded credentials (gosec)105 {106 name: "GitHub personal access token",107 token: "ghp_16C7e42F292c6912E7710c838347Ae178B4a",108 expected: "ghp_******4a",109 },110internal/ui/token_test.go:94:3: G101: Potential hardcoded credentials (gosec)111 {112 name: "GitHub server token",113 token: "ghs_16C7e42F292c6912E7710c838347Ae178B4a",114 expected: "ghs_******4a",115 },116internal/ui/token_test.go:99:3: G101: Potential hardcoded credentials (gosec)117 {118 name: "GitHub fine-grained PAT",119 token: "github_pat_11ABCDEF0_1234567890abcdef",120 expected: "github_pat_******ef",121 },12232 issues:123* goconst: 27124* gosec: 5