File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Check for diff after manifest and generated targets
33on :
44 pull_request : {}
55
6+ permissions :
7+ contents : read
8+ pull-requests : write
9+
610jobs :
711 diff-check-manifests :
812 name : Check for diff
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package v1alpha1
22
33const (
44 // DefaultRegistryCertificateSecretName is the name of the of certificate secret for client and registry.
5- DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // nolint:gosec // not a credential
5+ DefaultRegistryCertificateSecretName = "ocm-registry-tls-certs" // #nosec G101 // not a credential
66)
77
88// Internal ExtraIdentity keys.
@@ -35,5 +35,5 @@ const (
3535// Ocm credential config key for secrets.
3636const (
3737 // OCMCredentialConfigKey defines the secret key to look for in case a user provides an ocm credential config.
38- OCMCredentialConfigKey = ".ocmcredentialconfig" // nolint:gosec // it isn't a cred
38+ OCMCredentialConfigKey = ".ocmcredentialconfig" // #nosec G101 // not a credential
3939)
Original file line number Diff line number Diff line change @@ -143,8 +143,7 @@ func (c *Client) setupCertificates(ctx context.Context) error {
143143}
144144
145145func (c * Client ) constructTLSRoundTripper () http.RoundTripper {
146- // nolint:gosec // must provide lower version for quay.io
147- tlsConfig := & tls.Config {}
146+ tlsConfig := & tls.Config {} // #nosec G402 // must provide lower version for quay.io
148147 caCertPool := x509 .NewCertPool ()
149148 caCertPool .AppendCertsFromPEM (c .ca )
150149
You can’t perform that action at this time.
0 commit comments