fix(deps): update module github.com/go-git/go-git/v5 to v5.19.2 [security] - #647
reviewdog [golangci] report
reported by reviewdog 🐶
Findings (50)
action/build/validate.go|26 col 17| string restart has 8 occurrences, make it a constant (goconst)
action/config/load.go|192 col 9| string true has 7 occurrences, make it a constant (goconst)
action/config/update.go|150 col 16| string true has 7 occurrences, make it a constant (goconst)
action/config/validate.go|22 col 17| string generate has 13 occurrences, make it a constant (goconst)
action/dashboard/validate.go|15 col 17| string add has 3 occurrences, make it a constant (goconst)
action/dashboard/validate.go|23 col 17| string update has 6 occurrences, make it a constant (goconst)
action/schedule/validate.go|26 col 17| string get has 8 occurrences, make it a constant (goconst)
action/schedule/validate.go|34 col 17| string add has 8 occurrences, make it a constant (goconst)
action/secret/add.go|146 col 24| string add has 24 occurrences, make it a constant (goconst)
action/secret/update.go|152 col 24| string update has 22 occurrences, make it a constant (goconst)
action/secret/validate.go|69 col 17| string remove has 9 occurrences, make it a constant (goconst)
action/secret/validate.go|77 col 17| string add has 24 occurrences, make it a constant (goconst)
command/config/generate.go|18 col 15| string config has 4 occurrences, make it a constant (goconst)
command/config/generate.go|36 col 13| string access token used for communication with the Vela server has 3 occurrences, make it a constant (goconst)
command/config/generate.go|116 col 22| string cgu has 3 occurrences, make it a constant (goconst)
command/config/remove.go|30 col 13| string false has 15 occurrences, make it a constant (goconst)
command/config/remove.go|36 col 13| string access token used for communication with the Vela server has 3 occurrences, make it a constant (goconst)
command/config/remove.go|137 col 22| string cgu has 3 occurrences, make it a constant (goconst)
command/config/update.go|17 col 15| string config has 4 occurrences, make it a constant (goconst)
command/config/update.go|35 col 13| string access token used for communication with the Vela server has 3 occurrences, make it a constant (goconst)
command/config/update.go|124 col 22| string cgu has 3 occurrences, make it a constant (goconst)
command/config/update.go|132 col 12| string fs.mem-map has 4 occurrences, make it a constant (goconst)
command/config/update.go|234 col 12| string false has 15 occurrences, make it a constant (goconst)
command/config/view.go|17 col 15| string config has 4 occurrences, make it a constant (goconst)
command/deployment/add.go|24 col 15| string deployment has 4 occurrences, make it a constant (goconst)
command/deployment/add.go|36 col 13| string provide the organization for the deployment has 3 occurrences, make it a constant (goconst)
command/deployment/add.go|42 col 13| string provide the repository for the deployment has 3 occurrences, make it a constant (goconst)
command/deployment/get.go|20 col 15| string deployment has 4 occurrences, make it a constant (goconst)
command/deployment/get.go|33 col 13| string provide the organization for the deployment has 3 occurrences, make it a constant (goconst)
command/deployment/get.go|39 col 13| string provide the repository for the deployment has 3 occurrences, make it a constant (goconst)
command/deployment/view.go|20 col 15| string deployment has 4 occurrences, make it a constant (goconst)
command/deployment/view.go|32 col 13| string provide the organization for the deployment has 3 occurrences, make it a constant (goconst)
command/deployment/view.go|38 col 13| string provide the repository for the deployment has 3 occurrences, make it a constant (goconst)
command/hook/get.go|20 col 15| string hook has 3 occurrences, make it a constant (goconst)
command/hook/view.go|20 col 15| string hook has 3 occurrences, make it a constant (goconst)
command/schedule/get.go|48 col 13| string format the output in json, spew, wide or yaml has 3 occurrences, make it a constant (goconst)
command/schedule/remove.go|21 col 15| string schedule has 5 occurrences, make it a constant (goconst)
command/schedule/remove.go|33 col 13| string provide the organization for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/remove.go|39 col 13| string provide the repository for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/remove.go|48 col 13| string provide the name for the schedule has 4 occurrences, make it a constant (goconst)
command/schedule/remove.go|57 col 13| string format the output in json, spew, wide or yaml has 3 occurrences, make it a constant (goconst)
command/schedule/update.go|21 col 15| string schedule has 5 occurrences, make it a constant (goconst)
command/schedule/update.go|33 col 13| string provide the organization for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/update.go|39 col 13| string provide the repository for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/update.go|48 col 13| string provide the name for the schedule has 4 occurrences, make it a constant (goconst)
command/schedule/view.go|21 col 15| string schedule has 5 occurrences, make it a constant (goconst)
command/schedule/view.go|33 col 13| string provide the organization for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/view.go|39 col 13| string provide the repository for the schedule has 5 occurrences, make it a constant (goconst)
command/schedule/view.go|48 col 13| string provide the name for the schedule has 4 occurrences, make it a constant (goconst)
command/schedule/view.go|57 col 13| string format the output in json, spew, wide or yaml has 3 occurrences, make it a constant (goconst)
Filtered Findings (0)
Annotations
Check failure on line 26 in action/build/validate.go
github-actions / golangci
[golangci] action/build/validate.go#L26
string `restart` has 8 occurrences, make it a constant (goconst)
Raw output
action/build/validate.go:26:17: string `restart` has 8 occurrences, make it a constant (goconst)
if c.Action == "restart" || c.Action == "view" {
^
Check failure on line 192 in action/config/load.go
github-actions / golangci
[golangci] action/config/load.go#L192
string `true` has 7 occurrences, make it a constant (goconst)
Raw output
action/config/load.go:192:9: string `true` has 7 occurrences, make it a constant (goconst)
c := "true"
^
Check failure on line 150 in action/config/update.go
github-actions / golangci
[golangci] action/config/update.go#L150
string `true` has 7 occurrences, make it a constant (goconst)
Raw output
action/config/update.go:150:16: string `true` has 7 occurrences, make it a constant (goconst)
if value == "true" {
^
Check failure on line 22 in action/config/validate.go
github-actions / golangci
[golangci] action/config/validate.go#L22
string `generate` has 13 occurrences, make it a constant (goconst)
Raw output
action/config/validate.go:22:17: string `generate` has 13 occurrences, make it a constant (goconst)
if c.Action != "generate" && !c.UseMemMap {
^
Check failure on line 15 in action/dashboard/validate.go
github-actions / golangci
[golangci] action/dashboard/validate.go#L15
string `add` has 3 occurrences, make it a constant (goconst)
Raw output
action/dashboard/validate.go:15:17: string `add` has 3 occurrences, make it a constant (goconst)
if c.Action == "add" {
^
Check failure on line 23 in action/dashboard/validate.go
github-actions / golangci
[golangci] action/dashboard/validate.go#L23
string `update` has 6 occurrences, make it a constant (goconst)
Raw output
action/dashboard/validate.go:23:17: string `update` has 6 occurrences, make it a constant (goconst)
if c.Action == "update" || c.Action == "view" {
^
Check failure on line 26 in action/schedule/validate.go
github-actions / golangci
[golangci] action/schedule/validate.go#L26
string `get` has 8 occurrences, make it a constant (goconst)
Raw output
action/schedule/validate.go:26:17: string `get` has 8 occurrences, make it a constant (goconst)
if c.Action != "get" {
^
Check failure on line 34 in action/schedule/validate.go
github-actions / golangci
[golangci] action/schedule/validate.go#L34
string `add` has 8 occurrences, make it a constant (goconst)
Raw output
action/schedule/validate.go:34:17: string `add` has 8 occurrences, make it a constant (goconst)
if c.Action == "add" {
^
Check failure on line 146 in action/secret/add.go
github-actions / golangci
[golangci] action/secret/add.go#L146
string `add` has 24 occurrences, make it a constant (goconst)
Raw output
action/secret/add.go:146:24: string `add` has 24 occurrences, make it a constant (goconst)
Action: "add",
^
Check failure on line 152 in action/secret/update.go
github-actions / golangci
[golangci] action/secret/update.go#L152
string `update` has 22 occurrences, make it a constant (goconst)
Raw output
action/secret/update.go:152:24: string `update` has 22 occurrences, make it a constant (goconst)
Action: "update",
^
Check failure on line 69 in action/secret/validate.go
github-actions / golangci
[golangci] action/secret/validate.go#L69
string `remove` has 9 occurrences, make it a constant (goconst)
Raw output
action/secret/validate.go:69:17: string `remove` has 9 occurrences, make it a constant (goconst)
if c.Action == "remove" || c.Action == "update" || c.Action == "view" {
^
Check failure on line 77 in action/secret/validate.go
github-actions / golangci
[golangci] action/secret/validate.go#L77
string `add` has 24 occurrences, make it a constant (goconst)
Raw output
action/secret/validate.go:77:17: string `add` has 24 occurrences, make it a constant (goconst)
if c.Action == "add" {
^
Check failure on line 18 in command/config/generate.go
github-actions / golangci
[golangci] command/config/generate.go#L18
string `config` has 4 occurrences, make it a constant (goconst)
Raw output
command/config/generate.go:18:15: string `config` has 4 occurrences, make it a constant (goconst)
Name: "config",
^
Check failure on line 36 in command/config/generate.go
github-actions / golangci
[golangci] command/config/generate.go#L36
string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/generate.go:36:13: string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Usage: "access token used for communication with the Vela server",
^
Check failure on line 116 in command/config/generate.go
github-actions / golangci
[golangci] command/config/generate.go#L116
string `cgu` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/generate.go:116:22: string `cgu` has 3 occurrences, make it a constant (goconst)
Aliases: []string{"cgu"},
^
Check failure on line 30 in command/config/remove.go
github-actions / golangci
[golangci] command/config/remove.go#L30
string `false` has 15 occurrences, make it a constant (goconst)
Raw output
command/config/remove.go:30:13: string `false` has 15 occurrences, make it a constant (goconst)
Value: "false",
^
Check failure on line 36 in command/config/remove.go
github-actions / golangci
[golangci] command/config/remove.go#L36
string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/remove.go:36:13: string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Usage: "access token used for communication with the Vela server",
^
Check failure on line 137 in command/config/remove.go
github-actions / golangci
[golangci] command/config/remove.go#L137
string `cgu` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/remove.go:137:22: string `cgu` has 3 occurrences, make it a constant (goconst)
Aliases: []string{"cgu"},
^
Check failure on line 17 in command/config/update.go
github-actions / golangci
[golangci] command/config/update.go#L17
string `config` has 4 occurrences, make it a constant (goconst)
Raw output
command/config/update.go:17:15: string `config` has 4 occurrences, make it a constant (goconst)
Name: "config",
^
Check failure on line 35 in command/config/update.go
github-actions / golangci
[golangci] command/config/update.go#L35
string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/update.go:35:13: string `access token used for communication with the Vela server` has 3 occurrences, make it a constant (goconst)
Usage: "access token used for communication with the Vela server",
^
Check failure on line 124 in command/config/update.go
github-actions / golangci
[golangci] command/config/update.go#L124
string `cgu` has 3 occurrences, make it a constant (goconst)
Raw output
command/config/update.go:124:22: string `cgu` has 3 occurrences, make it a constant (goconst)
Aliases: []string{"cgu"},
^
Check failure on line 132 in command/config/update.go
github-actions / golangci
[golangci] command/config/update.go#L132
string `fs.mem-map` has 4 occurrences, make it a constant (goconst)
Raw output
command/config/update.go:132:12: string `fs.mem-map` has 4 occurrences, make it a constant (goconst)
Name: "fs.mem-map",
^
Check failure on line 234 in command/config/update.go
github-actions / golangci
[golangci] command/config/update.go#L234
string `false` has 15 occurrences, make it a constant (goconst)
Raw output
command/config/update.go:234:12: string `false` has 15 occurrences, make it a constant (goconst)
color = "false"
^
Check failure on line 17 in command/config/view.go
github-actions / golangci
[golangci] command/config/view.go#L17
string `config` has 4 occurrences, make it a constant (goconst)
Raw output
command/config/view.go:17:15: string `config` has 4 occurrences, make it a constant (goconst)
Name: "config",
^
Check failure on line 24 in command/deployment/add.go
github-actions / golangci
[golangci] command/deployment/add.go#L24
string `deployment` has 4 occurrences, make it a constant (goconst)
Raw output
command/deployment/add.go:24:15: string `deployment` has 4 occurrences, make it a constant (goconst)
Name: "deployment",
^