From c94c68a167d1244afe8cd40cdcc4e4e01fa6be39 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 27 Jan 2024 19:15:34 +0200 Subject: [PATCH] Fix GOROOT not being usable in hugo --- .woodpecker.yml | 2 -- config/_default/security.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3945b32..a678a73 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,5 +8,3 @@ steps: - hugo --gc --cleanDestinationDir --enableGitInfo -d /korhonen.cc volumes: - /var/www/korhonen.cc:/korhonen.cc - environment: - - GOROOT=/usr/local/lib/go diff --git a/config/_default/security.toml b/config/_default/security.toml index 370b400..7e77131 100644 --- a/config/_default/security.toml +++ b/config/_default/security.toml @@ -2,7 +2,7 @@ enableInlineShortcodes = false [exec] allow = ['^asciidoctor$', '^dart-sass-embedded$', '^go$', '^npx$', '^postcss$'] -osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM)$'] +osEnv = ['(?i)^(PATH|PATHEXT|APPDATA|TMP|TEMP|TERM|GO*)$'] [funcs] getenv = ['^HUGO_']