git: 826d39cdc4 - main - Allow git command

Fernando Apesteguía <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=826d39cdc4921ba5fce1780cfeeb116da0f0f556

commit 826d39cdc4921ba5fce1780cfeeb116da0f0f556
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2024-08-19 15:44:38 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2024-08-19 15:57:41 +0000

    Allow git command
    
    Use the default configuration as show in the Hugo site:
    https://gohugo.io/about/security/#security-policy
    
    Necessary for the upcoming update to hugo 0.133.0
---
 documentation/config/_default/hugo.toml | 2 +-
 website/config/_default/hugo.toml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/documentation/config/_default/hugo.toml b/documentation/config/_default/hugo.toml
index a7548e54b9..7f26c2bdc3 100644
--- a/documentation/config/_default/hugo.toml
+++ b/documentation/config/_default/hugo.toml
@@ -24,7 +24,7 @@ timeout = "180s"
 [security]
   enableInlineShortcodes = false
   [security.exec]
-    allow = ["^dart-sass-embedded$", "^go$", "^npx$", "^postcss$", "^asciidoctor$"]
+    allow = ["^dart-sass-embedded$", "^go$", "^git$", "^npx$", "^postcss$", "^asciidoctor$"]
     osEnv = ["(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|LOAD_PATH|RUBYLIB)$"]
   [security.funcs]
     getenv = ["^HUGO_"]
diff --git a/website/config/_default/hugo.toml b/website/config/_default/hugo.toml
index c4668b9791..0c1d93f723 100644
--- a/website/config/_default/hugo.toml
+++ b/website/config/_default/hugo.toml
@@ -21,7 +21,7 @@ preserveTOC = true
 [security]
   enableInlineShortcodes = false
   [security.exec]
-    allow = ["^dart-sass-embedded$", "^go$", "^npx$", "^postcss$", "^asciidoctor$"]
+    allow = ["^dart-sass-embedded$", "^go$", "^git$", "^npx$", "^postcss$", "^asciidoctor$"]
     osEnv = ["(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|LOAD_PATH|RUBYLIB)$"]
   [security.funcs]
     getenv = ["^HUGO_"]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.