-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: change exception for gosec linter #600
Conversation
Mend Scan Summary: ❌Repository: open-component-model/ocm-controller
|
@@ -2,7 +2,7 @@ | |||
|
|||
const ( | |||
// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry. | |||
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // nolint:gosec // not a credential | |||
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 // not a credential |
Check failure
Code scanning / gosec
Potential hardcoded credentials Error
@@ -35,5 +35,5 @@ | |||
// Ocm credential config key for secrets. | |||
const ( | |||
// OCMCredentialConfigKey defines the secret key to look for in case a user provides an ocm credential config. | |||
OCMCredentialConfigKey = ".ocmcredentialconfig" // nolint:gosec // it isn't a cred | |||
OCMCredentialConfigKey = ".ocmcredentialconfig" // #nosec G101 // not a credential |
Check failure
Code scanning / gosec
Potential hardcoded credentials Error
@@ -143,8 +143,7 @@ | |||
} | |||
|
|||
func (c *Client) constructTLSRoundTripper() http.RoundTripper { | |||
// nolint:gosec // must provide lower version for quay.io | |||
tlsConfig := &tls.Config{} | |||
tlsConfig := &tls.Config{} // #nosec G402 // must provide lower version for quay.io |
Check failure
Code scanning / gosec
TLS MinVersion too low. Error
@@ -2,7 +2,7 @@ | |||
|
|||
const ( | |||
// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry. | |||
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // nolint:gosec // not a credential | |||
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 // not a credential |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
Description
change exception for gosec linter