diff --git a/frontend/app/src/pages/main/workflow-runs/$run/index.tsx b/frontend/app/src/pages/main/workflow-runs/$run/index.tsx index 8759ce8f3..2dd4279c3 100644 --- a/frontend/app/src/pages/main/workflow-runs/$run/index.tsx +++ b/frontend/app/src/pages/main/workflow-runs/$run/index.tsx @@ -196,6 +196,7 @@ export function StepConfigurationSection({ stepRun }: { stepRun: StepRun }) { ); } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function TriggeringEventSection({ event }: { event: Event }) { return ( <> @@ -230,6 +231,7 @@ function EventDataSection({ event }: { event: Event }) { ); } +// eslint-disable-next-line @typescript-eslint/no-unused-vars function TriggeringCronSection({ cron }: { cron: string }) { const prettyInterval = `Runs ${CronPrettifier.toString( cron, diff --git a/internal/config/server/server.go b/internal/config/server/server.go index b49176da3..2de5d13f4 100644 --- a/internal/config/server/server.go +++ b/internal/config/server/server.go @@ -270,12 +270,12 @@ func BindAllEnv(v *viper.Viper) { _ = v.BindEnv("otel.collectorURL", "SERVER_OTEL_COLLECTOR_URL") // vcs options - v.BindEnv("vcs.kind", "SERVER_VCS_KIND") - v.BindEnv("vcs.github.enabled", "SERVER_VCS_GITHUB_ENABLED") - v.BindEnv("vcs.github.appClientID", "SERVER_VCS_GITHUB_APP_CLIENT_ID") - v.BindEnv("vcs.github.appClientSecret", "SERVER_VCS_GITHUB_APP_CLIENT_SECRET") - v.BindEnv("vcs.github.appName", "SERVER_VCS_GITHUB_APP_NAME") - v.BindEnv("vcs.github.appWebhookSecret", "SERVER_VCS_GITHUB_APP_WEBHOOK_SECRET") - v.BindEnv("vcs.github.appID", "SERVER_VCS_GITHUB_APP_ID") - v.BindEnv("vcs.github.appSecretPath", "SERVER_VCS_GITHUB_APP_SECRET_PATH") + _ = v.BindEnv("vcs.kind", "SERVER_VCS_KIND") + _ = v.BindEnv("vcs.github.enabled", "SERVER_VCS_GITHUB_ENABLED") + _ = v.BindEnv("vcs.github.appClientID", "SERVER_VCS_GITHUB_APP_CLIENT_ID") + _ = v.BindEnv("vcs.github.appClientSecret", "SERVER_VCS_GITHUB_APP_CLIENT_SECRET") + _ = v.BindEnv("vcs.github.appName", "SERVER_VCS_GITHUB_APP_NAME") + _ = v.BindEnv("vcs.github.appWebhookSecret", "SERVER_VCS_GITHUB_APP_WEBHOOK_SECRET") + _ = v.BindEnv("vcs.github.appID", "SERVER_VCS_GITHUB_APP_ID") + _ = v.BindEnv("vcs.github.appSecretPath", "SERVER_VCS_GITHUB_APP_SECRET_PATH") } diff --git a/internal/integrations/vcs/github/github_app_oauth.go b/internal/integrations/vcs/github/github_app_oauth.go index 1258c8bd6..eb7a7161b 100644 --- a/internal/integrations/vcs/github/github_app_oauth.go +++ b/internal/integrations/vcs/github/github_app_oauth.go @@ -2,8 +2,8 @@ package github import ( "fmt" - "io/ioutil" "net/http" + "os" "strconv" "github.com/bradleyfalzon/ghinstallation/v2" @@ -35,7 +35,7 @@ func NewGithubAppConf(cfg *oauth.Config, appName, appSecretPath, appWebhookSecre return nil, err } - appSecret, err := ioutil.ReadFile(appSecretPath) + appSecret, err := os.ReadFile(appSecretPath) if err != nil { return nil, fmt.Errorf("could not read github app secret: %s", err) diff --git a/internal/schema/schema.go b/internal/schema/schema.go index 466829bc2..452ba423f 100644 --- a/internal/schema/schema.go +++ b/internal/schema/schema.go @@ -100,8 +100,8 @@ func toExportedName(key string) string { return nameRegex.ReplaceAllStringFunc(key, func(t string) string { if len(t) == 1 { return strings.ToUpper(t) - } else { - return strings.ToUpper(string(t[1])) } + + return strings.ToUpper(string(t[1])) }) } diff --git a/internal/services/shared/tasktypes/step.go b/internal/services/shared/tasktypes/step.go index cf31525c5..bf915675b 100644 --- a/internal/services/shared/tasktypes/step.go +++ b/internal/services/shared/tasktypes/step.go @@ -102,7 +102,7 @@ type StepRunRetryTaskPayload struct { JobRunId string `json:"job_run_id" validate:"required,uuid"` // optional - if not provided, the step run will be retried with the same input - InputData string `json:"omitempty,input_data"` + InputData string `json:"input_data,omitempty"` } type StepRunRetryTaskMetadata struct {