Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ./version.mk

# Helper software versions
CONTROLLER_TOOLS_VERSION := v0.19.0
GOLANGCI_VERSION := v2.8.0
GOLANGCI_VERSION := v2.10.1
HELM_VERSION := v3.20.0
KUBECTL_VERSION := v1.35.1
KUSTOMIZE_VERSION := v5.8.1
Expand Down
4 changes: 3 additions & 1 deletion diskrsync-tcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type options struct {
}

func usage() {
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s [devicepath] [flags]\n", os.Args[0])
_, _ = fmt.Fprintf(os.Stderr, "Usage: %s [devicepath] [flags]\n", os.Args[0]) // nolint:gosec
flag.PrintDefaults()
os.Exit(2)
}
Expand Down Expand Up @@ -119,6 +119,7 @@ func createControlFile(fileName string) error {
}

func connectToTarget(sourceFile, targetAddress string, port int, opts *options, logger logr.Logger) error {
// nolint:gosec
f, err := os.Open(sourceFile)
if err != nil {
return err
Expand Down Expand Up @@ -176,6 +177,7 @@ func startServer(targetFile string, port int, opts *options, logger logr.Logger)
var w spgz.SparseFile
useReadBuffer := false

// nolint:gosec
f, err := os.OpenFile(targetFile, os.O_RDWR|os.O_CREATE, 0666)
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions internal/controller/mover/rclone/rclone_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,7 @@ var _ = Describe("Rclone as a source", func() {
{
MountPath: "addl-secret",
VolumeSource: volsyncv1alpha1.MoverVolumeSource{
// nolint:gosec
Secret: &corev1.SecretVolumeSource{
SecretName: "rclone-extra-secret",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (api *syncthingAPIConnection) jsonRequest(
req.Header.Set(key, value)
}

resp, err := api.apiConfig.Client.Do(req)
resp, err := api.apiConfig.Client.Do(req) // nolint:gosec
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/mover/syncthing/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ type SystemConnections struct {
// nolint:revive
type APIConfig struct {
APIURL string `json:"apiURL"`
APIKey string `json:"apiKey"`
APIKey string `json:"apiKey"` // nolint:gosec
// don't marshal this field
TLSConfig *tls.Config
Client *http.Client
Expand Down
1 change: 1 addition & 0 deletions internal/controller/mover/syncthing/syncthing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ var _ = Describe("When an RS specifies Syncthing", func() {
When("Syncthing server does not exist", func() {

JustBeforeEach(func() {
// nolint:gosec
mover.apiConfig = api.APIConfig{
APIURL: "https://my-fake-api-address-123",
APIKey: "not-a-real-api-key",
Expand Down
Loading