mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Only create/update index.txt, changes.csv, security.txt when configured. (#210)
* Change default to not write index.txt, changes.csv and security.txt (for provider and aggregator) * Add config file options to reenable writing.
This commit is contained in:
parent
3a3ef7a961
commit
20f5937240
8 changed files with 51 additions and 23 deletions
|
|
@ -41,7 +41,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