From 3f14bb26791c48a7985292dc90b5b9ac19d67db0 Mon Sep 17 00:00:00 2001 From: Nevio Date: Thu, 28 Mar 2024 09:51:42 +0100 Subject: [PATCH] Security nosec on G302 --- syncer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/syncer.go b/syncer.go index fed9cde..b729158 100644 --- a/syncer.go +++ b/syncer.go @@ -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) }