From b5e3a075304ae93d2c22bcbada7234be43222578 Mon Sep 17 00:00:00 2001 From: hopeyen Date: Thu, 5 Sep 2024 11:25:49 -0500 Subject: [PATCH] chore: passing gosec with nosec directives --- .github/workflows/lint.yml | 1 - server/config.go | 8 ++++---- server/load_store.go | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2f1f47b..d41a165 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,4 +24,3 @@ jobs: with: version: v1.60 args: --timeout 3m - diff --git a/server/config.go b/server/config.go index ff1d084..98aedf0 100644 --- a/server/config.go +++ b/server/config.go @@ -125,9 +125,9 @@ func (cfg *Config) VerificationCfg() *verify.Config { G1Path: cfg.G1Path, G2PowerOf2Path: cfg.G2PowerOfTauPath, CacheDir: cfg.CacheDir, - SRSOrder: 268435456, // 2 ^ 32 - SRSNumberToLoad: numBytes / 32, // # of fp.Elements - NumWorker: uint64(runtime.GOMAXPROCS(0)), + SRSOrder: 268435456, // 2 ^ 32 + SRSNumberToLoad: numBytes / 32, // # of fp.Elements + NumWorker: uint64(runtime.GOMAXPROCS(0)), // #nosec G115 } if cfg.EthRPC == "" || cfg.SvcManagerAddr == "" { @@ -142,7 +142,7 @@ func (cfg *Config) VerificationCfg() *verify.Config { RPCURL: cfg.EthRPC, SvcManagerAddr: cfg.SvcManagerAddr, KzgConfig: kzgCfg, - EthConfirmationDepth: uint64(cfg.EthConfirmationDepth), + EthConfirmationDepth: uint64(cfg.EthConfirmationDepth), // #nosec G115 } } diff --git a/server/load_store.go b/server/load_store.go index bc144f1..c20bde5 100644 --- a/server/load_store.go +++ b/server/load_store.go @@ -62,7 +62,7 @@ func LoadStoreRouter(ctx context.Context, cfg CLIConfig, log log.Logger) (store. log, &store.EigenDAStoreConfig{ MaxBlobSizeBytes: maxBlobLength, - EthConfirmationDepth: uint64(cfg.EigenDAConfig.EthConfirmationDepth), + EthConfirmationDepth: uint64(cfg.EigenDAConfig.EthConfirmationDepth), // #nosec G115 StatusQueryTimeout: cfg.EigenDAConfig.ClientConfig.StatusQueryTimeout, }, )