mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-10-01 04:21:58 +00:00
chore(gosec): enable gosec and address findings
This commit is contained in:
@@ -149,7 +149,7 @@ func generateSwaggerUI(config UIConfig) (string, error) {
|
||||
|
||||
data := templateData{
|
||||
UIConfig: config,
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS),
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS), //nolint:gosec // G203: CSS from trusted server config
|
||||
}
|
||||
|
||||
var buf strings.Builder
|
||||
@@ -200,7 +200,7 @@ func generateRapiDoc(config UIConfig) (string, error) {
|
||||
|
||||
data := templateData{
|
||||
UIConfig: config,
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS),
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS), //nolint:gosec // G203: CSS from trusted server config
|
||||
}
|
||||
|
||||
var buf strings.Builder
|
||||
@@ -238,7 +238,7 @@ func generateRedoc(config UIConfig) (string, error) {
|
||||
|
||||
data := templateData{
|
||||
UIConfig: config,
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS),
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS), //nolint:gosec // G203: CSS from trusted server config
|
||||
}
|
||||
|
||||
var buf strings.Builder
|
||||
@@ -276,7 +276,7 @@ func generateScalar(config UIConfig) (string, error) {
|
||||
|
||||
data := templateData{
|
||||
UIConfig: config,
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS),
|
||||
SafeCustomCSS: template.CSS(config.CustomCSS), //nolint:gosec // G203: CSS from trusted server config
|
||||
}
|
||||
|
||||
var buf strings.Builder
|
||||
|
||||
Reference in New Issue
Block a user