Skip to content

Commit

Permalink
chore: bump golangci-lint and minor fix (#186)
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Constanti <mario.constanti@mercedes-benz.com>
  • Loading branch information
bavarianbidi authored Oct 16, 2024
1 parent f1c72c6 commit ae4fd78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ linters-settings:
zap: false
require-string-key: true
no-printf-like: true

gosec:
excludes:
- G115 # Potential integer overflow when converting between integer types
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ KIND ?= $(LOCALBIN)/kind
## Tool Versions
KUSTOMIZE_VERSION ?= v5.0.1
CONTROLLER_TOOLS_VERSION ?= v0.15.0
GOLANGCI_LINT_VERSION ?= v1.59.1
GOLANGCI_LINT_VERSION ?= v1.61.0
MOCKGEN_VERSION ?= v0.4.0
GORELEASER_VERSION ?= v1.21.0
MDTOC_VERSION ?= v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func extractJWTTokenExp(ctx context.Context, tokenString string) {
if claims, ok := token.Claims.(jwt.MapClaims); ok {
if exp, ok := claims["exp"].(float64); ok {
expTime := time.Unix(int64(exp), 0)
log.Info(fmt.Sprintf("new token expires on " + expTime.Format(time.UnixDate)))
log.Info(fmt.Sprintf("new token expires on %s", expTime.Format(time.UnixDate)))
metrics.GarmJwtExpiresAt.Set(exp)
}
}
Expand Down

0 comments on commit ae4fd78

Please sign in to comment.