mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
pkg/scan: fix dropped error
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
This commit is contained in:
parent
5eb0c083dd
commit
ef835e107a
@ -182,9 +182,11 @@ func (j *Job) Run(ctx job.Context, params job.Parameters) error {
|
||||
robotAccount, _ := extractRobotAccount(params)
|
||||
|
||||
var authorization string
|
||||
var tokenURL string
|
||||
|
||||
authType, _ := extractAuthType(params)
|
||||
if authType == authorizationBearer {
|
||||
tokenURL, err := getInternalTokenServiceEndpoint(ctx)
|
||||
tokenURL, err = getInternalTokenServiceEndpoint(ctx)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "scan job: get token service endpoint")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user