Skip to content

Commit

Permalink
fix: create token file with 0600 permission
Browse files Browse the repository at this point in the history
  • Loading branch information
5n7-sk committed Jan 19, 2021
1 parent ed01137 commit 4524191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (c *CLI) StoreAccessToken(token string) error {
return err
}

if err := ioutil.WriteFile(tokenPath, b, os.ModePerm); err != nil {
if err := ioutil.WriteFile(tokenPath, b, 0600); err != nil {
return err
}
fmt.Printf("Your token is stored in %s\n", tokenPath)
Expand Down

0 comments on commit 4524191

Please sign in to comment.