mirror of
https://github.com/pushbits/server.git
synced 2025-07-18 17:07:28 +02:00
Add scans with Semgrep
This commit is contained in:
parent
5cd3627dc6
commit
23e64b8380
73 changed files with 3006 additions and 3 deletions
|
@ -27,6 +27,7 @@ func createFileDir(file string) {
|
|||
dir := filepath.Dir(file)
|
||||
|
||||
if _, err := os.Stat(dir); os.IsNotExist(err) {
|
||||
// nosemgrep: tests.semgrep.go.lang.correctness.permissions.incorrect-default-permission
|
||||
if err := os.MkdirAll(dir, 0750); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue