diff --git a/.github/workflows/test-on-pr.yml b/.github/workflows/test-on-pr.yml index df899ae..79a9682 100644 --- a/.github/workflows/test-on-pr.yml +++ b/.github/workflows/test-on-pr.yml @@ -23,4 +23,4 @@ jobs: - name: Run Gosec Security Scanner uses: securego/gosec@master with: - args: --exclude=G104 ./... + args: --exclude=G104,G402 ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 894442b..ba5998f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,4 +30,4 @@ jobs: - name: Run Gosec Security Scanner uses: securego/gosec@master with: - args: --exclude=G104 ./... + args: --exclude=G104,G402 ./... diff --git a/model/notification.go b/model/notification.go index b231714..6d2f5be 100644 --- a/model/notification.go +++ b/model/notification.go @@ -118,9 +118,7 @@ func (ns *NotificationServerBundle) Send(message string) error { } transCfg := &http.Transport{ - TLSClientConfig: &tls.Config{ - InsecureSkipVerify: verifySSL, // #nosec G402 - }, + TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, } client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10}