From 49650408a2327b56ec42321002fe53ccc376aabb Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Tue, 24 Sep 2024 12:41:36 +0100 Subject: [PATCH] Allows overriding README_TEMPLATE_REPO_URL and README_ALLOWLIST_ORGS. Fixes: #387. --- modules/readme/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/readme/Makefile b/modules/readme/Makefile index e9f481a6..d1a2e356 100644 --- a/modules/readme/Makefile +++ b/modules/readme/Makefile @@ -6,13 +6,13 @@ export README_TEMPLATE_REPO_ORG ?= $(shell [ -f "$(README_YAML)" ] && dirname $ export README_TEMPLATE_REPO ?= .github export README_TEMPLATE_REPO_REF ?= main export README_TEMPLATE_REPO_PATH ?= README.md.gotmpl -export README_TEMPLATE_REPO_URL := https://raw.githubusercontent.com/$(README_TEMPLATE_REPO_ORG)/$(README_TEMPLATE_REPO)/$(README_TEMPLATE_REPO_REF)/$(README_TEMPLATE_REPO_PATH) +export README_TEMPLATE_REPO_URL ?= https://raw.githubusercontent.com/$(README_TEMPLATE_REPO_ORG)/$(README_TEMPLATE_REPO)/$(README_TEMPLATE_REPO_REF)/$(README_TEMPLATE_REPO_PATH) export README_TEMPLATE_REMOTE_FILE ?= $(BUILD_HARNESS_PATH)/templates/README.md.gotmpl export README_TEMPLATE_FILE ?= $(README_TEMPLATE_REMOTE_FILE) export README_TEMPLATE_YAML := $(BUILD_HARNESS_PATH)/templates/$(README_YAML) # Only allow allowlisted orgs to supply the README template -export README_ALLOWLIST_ORGS := \ +export README_ALLOWLIST_ORGS ?= \ cloudposse \ cloudposse-archives \ cloudposse-corp \