Skip to content

Commit

Permalink
use in-line exclusions instead of global ones for gosec
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Jun 3, 2024
1 parent 1b184ae commit 8d5ee95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ issues:
linters:
- dupl
- lll
- path: "pkg/monitoring/prometheusagent/secret.go"
linters:
- gosec
- path: "pkg/monitoring/mimir/service.go"
linters:
- gosec
linters:
disable-all: true
enable:
Expand Down
4 changes: 2 additions & 2 deletions pkg/monitoring/mimir/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
)

const (
ingressAuthSecretName = "mimir-gateway-ingress-auth"
mimirApiKey = "mimir-basic-auth"
ingressAuthSecretName = "mimir-gateway-ingress-auth" // #nosec G101
mimirApiKey = "mimir-basic-auth" // #nosec G101
mimirNamespace = "mimir"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/monitoring/prometheusagent/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

const (
mimirApiKey = "mimir-basic-auth"
mimirApiKey = "mimir-basic-auth" // #nosec G101
mimirNamespace = "mimir"
)

Expand Down

0 comments on commit 8d5ee95

Please sign in to comment.