Skip to content

Commit

Permalink
chore: replace credential func
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Dec 18, 2024
1 parent c2667ae commit 1cf11e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/oci/extensions/repositories/ocireg/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (r *RepositoryImpl) getResolver(comp string) (oras.Resolver, error) {
fmt.Println("setting up auth cred for host port: ", r.info.HostPort())

Check failure on line 170 in api/oci/extensions/repositories/ocireg/repository.go

View workflow job for this annotation

GitHub Actions / Lint Golang

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
fmt.Println("matching against: ", hostport)

Check failure on line 171 in api/oci/extensions/repositories/ocireg/repository.go

View workflow job for this annotation

GitHub Actions / Lint Golang

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
if strings.Contains(hostport, r.info.HostPort()) {
logger.Info("using provided credentials")
fmt.Println("using: "+authCreds.Username, authCreds.Password)

Check failure on line 173 in api/oci/extensions/repositories/ocireg/repository.go

View workflow job for this annotation

GitHub Actions / Lint Golang

use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information High

Sensitive data returned by an access to Password
flows to a logging call.
return authCreds, nil
}
logger.Warn("no credentials for host", "host", hostport)
Expand Down

0 comments on commit 1cf11e2

Please sign in to comment.