Skip to content

Commit

Permalink
fix gosec issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh committed Feb 9, 2024
1 parent 321274f commit e7850ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/zetaclientd/encrypt_tss.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"errors"
"io"
"os"
"path/filepath"

"github.com/spf13/cobra"
)
Expand All @@ -28,6 +29,7 @@ func EncryptTSSFile(_ *cobra.Command, args []string) error {
filePath := args[0]
secretKey := args[1]

filePath = filepath.Clean(filePath)
data, err := os.ReadFile(filePath)
if err != nil {
return err
Expand Down

0 comments on commit e7850ea

Please sign in to comment.