chore: add govulncheck (#316)

* import

* add target

* workflow

* remove parallel

* fix with dummy
This commit is contained in:
Alex Johnson
2023-12-20 14:52:33 -05:00
committed by GitHub
parent 4e7e7acfbf
commit 0612051d51
8 changed files with 40 additions and 10 deletions
+2 -3
View File
@@ -38,7 +38,6 @@ import (
txmodule "github.com/cosmos/cosmos-sdk/x/auth/tx/config"
"github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
)
@@ -227,8 +226,8 @@ func initRootCmd(
)
}
func addModuleInitFlags(startCmd *cobra.Command) {
crisis.AddModuleInitFlags(startCmd)
func addModuleInitFlags(cmd *cobra.Command) {
cmd.Flags().Bool(flagCrisisDummy, true, "dummy flag for crisis module")
}
// genesisCommand builds genesis-related `simd genesis` command. Users may provide application specific commands as a parameter
+1
View File
@@ -49,6 +49,7 @@ var (
flagRPCAddress = "rpc.address"
flagAPIAddress = "api.address"
flagPrintMnemonic = "print-mnemonic"
flagCrisisDummy = "x-crisis-skip-assert-invariants" // dummy flag so that the crisis module does not need to be imported for security reasons
)
type initArgs struct {
@@ -68,8 +68,6 @@ func (s *NetworkTestSuite) TestGetLanes() {
}
func (s *NetworkTestSuite) TestGetAuctionParams() {
s.T().Parallel()
common := []string{
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
}