mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 18:15:42 +01:00
Merge branch 'main' into rolie-categories
This commit is contained in:
commit
dc8c89c886
8 changed files with 57 additions and 28 deletions
|
|
@ -43,7 +43,13 @@ func ensureFolders(c *config) error {
|
|||
}
|
||||
}
|
||||
|
||||
return setupSecurity(c, wellknown)
|
||||
// Only write/modify security.txt if configured.
|
||||
if c.WriteSecurity {
|
||||
if err := setupSecurity(c, wellknown); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// createWellknown creates ".well-known" directory if not exist and returns nil.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue