Skip to content

Commit

Permalink
chore: passing gosec with nosec directives
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Sep 5, 2024
1 parent cd31750 commit b5e3a07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ jobs:
with:
version: v1.60
args: --timeout 3m

8 changes: 4 additions & 4 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand All @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion server/load_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
)
Expand Down

0 comments on commit b5e3a07

Please sign in to comment.