Skip to content

Commit

Permalink
use nosec for params
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Oct 30, 2023
1 parent 5fe10c1 commit 71e728e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/zetacore_utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func main() {

distributionList := make([]TokenDistribution, len(addresses))
for i, address := range addresses {
// #nosec G204
cmd := exec.Command("zetacored", "q", "bank", "balances", address, "--output", "json", "--denom", "azeta", "--node", node)
output, err := cmd.CombinedOutput()
if err != nil {
Expand Down Expand Up @@ -85,6 +86,7 @@ func main() {
args = append(args, []string{distributionList[0].TokensDistributed.String(), "--keyring-backend", "test", "--chain-id", chainID, "--yes",
"--broadcast-mode", broadcastMode, "--gas=auto", "--gas-adjustment=2", "--gas-prices=0.001azeta", "--node", node}...)

// #nosec G204
cmd := exec.Command("zetacored", args...)
output, err := cmd.CombinedOutput()
if err != nil {
Expand All @@ -97,6 +99,7 @@ func main() {
time.Sleep(7 * time.Second)

for i, address := range addresses {
// #nosec G204
cmd := exec.Command("zetacored", "q", "bank", "balances", address, "--output", "json", "--denom", "azeta", "--node", node)
output, err := cmd.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit 71e728e

Please sign in to comment.