Skip to content

Commit f9a8b23

Browse files
committed
Merge branch 'correct-blackduck-sca-action' of https://github.com/open-component-model/ocm-controller into correct-blackduck-sca-action
On-behalf-of: Gerald Morrison (SAP) <[email protected]> Signed-off-by: Gerald Morrison (SAP) <[email protected]>
2 parents 7e90d72 + 67a79c5 commit f9a8b23

File tree

4 files changed

+3
-88
lines changed

4 files changed

+3
-88
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/code-scan.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

api/v1alpha1/constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package v1alpha1
22

33
const (
44
// DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry.
5-
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 -- not a credential
5+
DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" //nolint:gosec // not a credential
66
)
77

88
// Internal ExtraIdentity keys.
@@ -35,5 +35,5 @@ const (
3535
// Ocm credential config key for secrets.
3636
const (
3737
// OCMCredentialConfigKey defines the secret key to look for in case a user provides an ocm credential config.
38-
OCMCredentialConfigKey = ".ocmcredentialconfig" // #nosec G101 -- not a credential
38+
OCMCredentialConfigKey = ".ocmcredentialconfig" //nolint:gosec // not a credential
3939
)

pkg/oci/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (c *Client) setupCertificates(ctx context.Context) error {
143143
}
144144

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

0 commit comments

Comments
 (0)