mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 14:08:01 +08:00
chore: fix dependabot alerts (#4048)
* chore: fix dependabot alerts Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: fix dependabot alerts Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: fix dependabot alerts Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: fix golangci-lint findings from CI Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: fix golangci-lint gosec warnings Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update code to use slices package and address gosec linting issues Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * build: fix makefile target Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update tests to use context in HTTP requests and add gosec annotations Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update tests to use context in HTTP requests Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update tests to use context in HTTP requests Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update tests to use context in HTTP requests Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update tests to use context in HTTP requests Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: bump zui version Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: update test helpers and improve security settings in tests Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> * chore: add gosec linting directive for test path construction Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com> --------- Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9757f7cf41
commit
9aff5b8d08
@@ -115,10 +115,10 @@ func TestConfig(t *testing.T) {
|
||||
Issuer: "https://accounts.google.com",
|
||||
Scopes: []string{"openid", "email"},
|
||||
},
|
||||
"github": {
|
||||
"github": { //nolint: gosec
|
||||
Name: "GitHub",
|
||||
ClientID: "github-client-id",
|
||||
ClientSecret: "github-client-secret",
|
||||
ClientSecret: "github-client-secret", //nolint: gosec
|
||||
AuthURL: "github-auth-url",
|
||||
TokenURL: "github-token-url",
|
||||
Scopes: []string{"user:email"},
|
||||
|
||||
@@ -74,7 +74,7 @@ func TestRedisOptions(t *testing.T) {
|
||||
So(clientIntf, ShouldBeNil)
|
||||
|
||||
// Success
|
||||
config = map[string]any{"url": "redis://user:password@localhost:6379/1?dial_timeout=5s"}
|
||||
config = map[string]any{"url": "redis://user:password@localhost:6379/1?dial_timeout=5s"} //nolint: gosec
|
||||
|
||||
clientIntf, err = rediscfg.GetRedisClient(config, log)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
Reference in New Issue
Block a user