Skip to content

Commit

Permalink
Fix code scanning alert no. 4: Clear-text logging of sensitive inform…
Browse files Browse the repository at this point in the history
…ation

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
zjg555543 and github-advanced-security[bot] authored Nov 18, 2024
1 parent f7fb424 commit 5e486db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions agglayer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,8 @@ type CertificateHeader struct {
}

func (c CertificateHeader) String() string {
errors := ""
if c.Error != nil {
errors = c.Error.String()
}

return fmt.Sprintf("Height: %d, CertificateID: %s, NewLocalExitRoot: %s. Status: %s. Errors: [%s]",
c.Height, c.CertificateID.String(), c.NewLocalExitRoot.String(), c.Status.String(), errors)
return fmt.Sprintf("Height: %d, CertificateID: %s, NewLocalExitRoot: %s. Status: %s",
c.Height, c.CertificateID.String(), c.NewLocalExitRoot.String(), c.Status.String())
}

func (c *CertificateHeader) UnmarshalJSON(data []byte) error {
Expand Down
1 change: 0 additions & 1 deletion aggsender/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func (c Config) String() string {
"BlockGetInterval: " + c.BlockGetInterval.String() + "\n" +
"CheckSettledInterval: " + c.CheckSettledInterval.String() + "\n" +
"AggsenderPrivateKeyPath: " + c.AggsenderPrivateKey.Path + "\n" +
"AggsenderPrivateKeyPassword: " + c.AggsenderPrivateKey.Password + "\n" +
"URLRPCL2: " + c.URLRPCL2 + "\n" +
"BlockFinality: " + c.BlockFinality + "\n" +
"EpochNotificationPercentage: " + fmt.Sprintf("%d", c.EpochNotificationPercentage) + "\n" +
Expand Down

0 comments on commit 5e486db

Please sign in to comment.