Skip to content
Merged
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 pkg/client/common/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func Request(ctx context.Context, client http.Client, url, token string, reqBody
req.Header = header

// do http call
resp, err := client.Do(req)
resp, err := client.Do(req) //nolint:gosec
if err != nil {
return nil, fmt.Errorf("failed to do request: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/mondooclient/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type IntegrationRegisterOutput struct {
type ServiceAccountCredentials struct {
Mrn string `protobuf:"bytes,1,opt,name=mrn,proto3" json:"mrn,omitempty"`
SpaceMrn string `protobuf:"bytes,2,opt,name=space_mrn,json=spaceMrn,proto3" json:"space_mrn,omitempty"`
PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` //nolint:gosec
Certificate string `protobuf:"bytes,4,opt,name=certificate,proto3" json:"certificate,omitempty"`
ApiEndpoint string `protobuf:"bytes,5,opt,name=api_endpoint,json=apiEndpoint,proto3" json:"api_endpoint,omitempty"`
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/imagecache/imagecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ type DockerConfigJSON struct {
// DockerConfigEntry represents a single registry entry in Docker config
type DockerConfigEntry struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Password string `json:"password,omitempty"` //nolint:gosec
Auth string `json:"auth,omitempty"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/k8s/private_registries.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type DockerConfigJSON struct {
type DockerAuthConfig struct {
Auth string `json:"auth,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Password string `json:"password,omitempty"` //nolint:gosec
Email string `json:"email,omitempty"`
ServerAddress string `json:"serveraddress,omitempty"`
IdentityToken string `json:"identitytoken,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions tests/framework/utils/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (*CommandExecutor) ExecuteCommandWithOutputFileTimeout(timeout time.Duratio
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()

// #nosec G204 Rook controls the input to the exec arguments
//nolint:gosec // Rook controls the input to the exec arguments
cmd := exec.CommandContext(ctx, command, arg...)
cmdOut, err := cmd.CombinedOutput()

Expand Down Expand Up @@ -179,7 +179,7 @@ func (*CommandExecutor) ExecuteCommandWithOutputFile(command, outfileArg string,
arg = append(arg, outfileArg, outFile.Name())

logCommand(command, arg...)
// #nosec G204 Rook controls the input to the exec arguments
//nolint:gosec // Rook controls the input to the exec arguments
cmd := exec.Command(command, arg...)
cmdOut, err := cmd.CombinedOutput()
if err != nil {
Expand Down
Loading