Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 28, 2022
1 parent 960cf2a commit 8b64c6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ define make-go-dependency
endef

.bin/golangci-lint: Makefile
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b .bin v1.44.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b .bin

$(foreach dep, $(GO_DEPENDENCIES), $(eval $(call make-go-dependency, $(dep))))

Expand Down
1 change: 1 addition & 0 deletions cmd/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func serve(
) {
defer wg.Done()

// #nosec G112 false positive
var srv = graceful.WithDefaults(&http.Server{
Handler: handler,
// #nosec G402 - This is a false positive because we use graceful.WithDefaults which sets the correct TLS settings.
Expand Down
1 change: 1 addition & 0 deletions cmd/token_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ and success, unless if the --no-shutdown flag is provided.`,
tlsc = &tls.Config{Certificates: []tls.Certificate{*cert}}
}

// #nosec G112 false positive
server := graceful.WithDefaults(&http.Server{Addr: fmt.Sprintf(":%d", port), Handler: r, TLSConfig: tlsc})
var shutdown = func() {
time.Sleep(time.Second * 1)
Expand Down

0 comments on commit 8b64c6d

Please sign in to comment.