mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Merge pull request #4634 from vmware/fix_vul_issues
Fix the vulnerability issues in the job service code
This commit is contained in:
commit
04bad55134
@ -34,7 +34,7 @@ func New(logPath string, level string) *JobLogger {
|
|||||||
//Implements logger.Closer interface
|
//Implements logger.Closer interface
|
||||||
func (jl *JobLogger) Close() error {
|
func (jl *JobLogger) Close() error {
|
||||||
if jl.streamRef != nil {
|
if jl.streamRef != nil {
|
||||||
jl.streamRef.Close()
|
return jl.streamRef.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
package opm
|
package opm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
@ -38,9 +37,6 @@ func NewHookClient() *HookClient {
|
|||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
MaxIdleConns: maxIdleConnections,
|
MaxIdleConns: maxIdleConnections,
|
||||||
IdleConnTimeout: idleConnectionTimeout,
|
IdleConnTimeout: idleConnectionTimeout,
|
||||||
TLSClientConfig: &tls.Config{
|
|
||||||
InsecureSkipVerify: true,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user