Skip to content

Commit

Permalink
test new format #nosec [RuleList] [-- Justification] (#601)
Browse files Browse the repository at this point in the history
## Description
test new format #nosec [RuleList] [-- Justification]
  • Loading branch information
morri-son authored Feb 20, 2025
1 parent 615eb2b commit 261d931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/v1alpha1/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package v1alpha1

const (
// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry.
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 // not a credential
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 -- not a credential
)

// Internal ExtraIdentity keys.
Expand Down Expand Up @@ -35,5 +35,5 @@ const (
// 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" // #nosec G101 // not a credential
OCMCredentialConfigKey = ".ocmcredentialconfig" // #nosec G101 -- not a credential
)
2 changes: 1 addition & 1 deletion pkg/oci/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *Client) setupCertificates(ctx context.Context) error {
}

func (c *Client) constructTLSRoundTripper() http.RoundTripper {
tlsConfig := &tls.Config{} // #nosec G402 // must provide lower version for quay.io
tlsConfig := &tls.Config{} // #nosec G402 -- must provide lower version for quay.io
caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM(c.ca)

Expand Down

0 comments on commit 261d931

Please sign in to comment.