Skip to content

Commit

Permalink
fix: Add directives to false positives reported by goleaks linter (#968)
Browse files Browse the repository at this point in the history
The goleaks linter runs as part of super-linter.
  • Loading branch information
dlipovetsky authored Dec 21, 2023
1 parent 37ac8de commit 57983bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/konvoy-image-wrapper/cmd/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ const (

envVSphereServer = "VSPHERE_SERVER"
envVSphereUser = "VSPHERE_USERNAME"
envVSpherePassword = "VSPHERE_PASSWORD"
envVSpherePassword = "VSPHERE_PASSWORD" // #gitleaks:allow
envVSphereDatacenter = "VSPHERE_DATACENTER"
envVsphereDatastore = "VSPHERE_DATASTORE"

envRedHatSubscriptionManagerUser = "RHSM_USER"
envRedHatSubscriptionManagerPassword = "RHSM_PASS"
envRedHatSubscriptionManagerPassword = "RHSM_PASS" // #gitleaks:allow
envRedHatSubscriptionManagerActivationKey = "RHSM_ACTIVATION_KEY"
envRedHatSubscriptionManagerOrgID = "RHSM_ORG_ID"

envVSphereSSHUserName = "SSH_USERNAME"
envVSphereSSHPassword = "SSH_PASSWORD"
envVSphereSSHPassword = "SSH_PASSWORD" // #gitleaks:allow
envVsphereSSHPrivatekeyFile = "SSH_PRIVATE_KEY_FILE"
envVsphereSSHPublicKeyContents = "SSH_PUBLIC_KEY"

Expand Down
2 changes: 1 addition & 1 deletion pkg/app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
packerKIBVersionKey = "konvoy_image_builder_version"
packerSSHBastionHostKey = "ssh_bastion_host"
packerSSHBastionUsernameKey = "ssh_bastion_username"
packerSSHBastionPasswordKey = "ssh_bastion_password" //nolint:gosec // just a key
packerSSHBastionPasswordKey = "ssh_bastion_password" //nolint:gosec // just a key // #gitleaks:allow
packerSSHBastionPrivateKeyKey = "ssh_bastion_private_key_file" //nolint:gosec // just a key
azureaGlleryImageNameRegex = "[^-a-zA-Z.0-9_]"
)
Expand Down

0 comments on commit 57983bd

Please sign in to comment.