Skip to content

Commit b5e3a07

Browse files
committed
chore: passing gosec with nosec directives
1 parent cd31750 commit b5e3a07

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ jobs:
2424
with:
2525
version: v1.60
2626
args: --timeout 3m
27-

server/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ func (cfg *Config) VerificationCfg() *verify.Config {
125125
G1Path: cfg.G1Path,
126126
G2PowerOf2Path: cfg.G2PowerOfTauPath,
127127
CacheDir: cfg.CacheDir,
128-
SRSOrder: 268435456, // 2 ^ 32
129-
SRSNumberToLoad: numBytes / 32, // # of fp.Elements
130-
NumWorker: uint64(runtime.GOMAXPROCS(0)),
128+
SRSOrder: 268435456, // 2 ^ 32
129+
SRSNumberToLoad: numBytes / 32, // # of fp.Elements
130+
NumWorker: uint64(runtime.GOMAXPROCS(0)), // #nosec G115
131131
}
132132

133133
if cfg.EthRPC == "" || cfg.SvcManagerAddr == "" {
@@ -142,7 +142,7 @@ func (cfg *Config) VerificationCfg() *verify.Config {
142142
RPCURL: cfg.EthRPC,
143143
SvcManagerAddr: cfg.SvcManagerAddr,
144144
KzgConfig: kzgCfg,
145-
EthConfirmationDepth: uint64(cfg.EthConfirmationDepth),
145+
EthConfirmationDepth: uint64(cfg.EthConfirmationDepth), // #nosec G115
146146
}
147147
}
148148

server/load_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func LoadStoreRouter(ctx context.Context, cfg CLIConfig, log log.Logger) (store.
6262
log,
6363
&store.EigenDAStoreConfig{
6464
MaxBlobSizeBytes: maxBlobLength,
65-
EthConfirmationDepth: uint64(cfg.EigenDAConfig.EthConfirmationDepth),
65+
EthConfirmationDepth: uint64(cfg.EigenDAConfig.EthConfirmationDepth), // #nosec G115
6666
StatusQueryTimeout: cfg.EigenDAConfig.ClientConfig.StatusQueryTimeout,
6767
},
6868
)

0 commit comments

Comments
 (0)