integration/plugin/common: fix gosec G117 linting
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
1 file changed
+1
-1
@@ -187,7 +187,7 @@ func TestPluginInstall(t *testing.T) {
|
||||
auth := ®istrytypes.AuthConfig{ServerAddress: registry.DefaultURL, Username: "testuser", Password: "testpassword"}
|
||||
assert.NilError(t, plugin.CreateInRegistry(ctx, repo, auth))
|
||||
|
||||
authEncoded, err := json.Marshal(auth)
|
||||
authEncoded, err := json.Marshal(auth) // #nosec G117 -- struct intentionally contains password.
|
||||
assert.NilError(t, err)
|
||||
|
||||
rdr, err := apiclient.PluginInstall(ctx, repo, client.PluginInstallOptions{
|
||||
|
||||
Reference in new issue
Block a user