Browse Source

fix: typo on delete method for repo (#4750)

Signed-off-by: Gustavo Carvalho <gustavo@externalsecrets.com>
Gustavo Fernandes de Carvalho 11 months ago
parent
commit
95080340ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/provider/github/repo_secrets.go

+ 1 - 1
pkg/provider/github/repo_secrets.go

@@ -38,5 +38,5 @@ func (g *Client) repoListSecretsFn(ctx context.Context) (*github.Secrets, *githu
 }
 
 func (g *Client) repoDeleteSecretsFn(ctx context.Context, remoteRef esv1.PushSecretRemoteRef) (*github.Response, error) {
-	return g.baseClient.DeleteRepoSecret(ctx, g.provider.Organization, g.provider.Environment, remoteRef.GetRemoteKey())
+	return g.baseClient.DeleteRepoSecret(ctx, g.provider.Organization, g.provider.Repository, remoteRef.GetRemoteKey())
 }