Skip to content

Commit

Permalink
Security nosec on G302
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Mar 28, 2024
1 parent 0f937a5 commit 3f14bb2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ func (s *Solc) downloadFile(file string, url string) error {
}

// #nosec G302
// G302 (CWE-276): Expect file permissions to be 0600 or less (Confidence: HIGH, Severity: MEDIUM)
// We want executable files to be executable by the user running the program so we can't use 0600.
if err := os.Chmod(file, 0755); err != nil {
return fmt.Errorf("failed to set file as executable: %v", err)
}
Expand Down

0 comments on commit 3f14bb2

Please sign in to comment.