Explain _clear_envs rationale

This commit is contained in:
Jacobo de Vera authored and neil committed 2025-12-27 11:02:40 +01:00
1 parent a961e03a59
commit 69dd2cf78b
1 file changed
+8
+8
View File
@@ -203,6 +203,14 @@ _export_envs() {
# Description: # Description:
# This function takes a YAML formatted string of environment variables, parses it, # This function takes a YAML formatted string of environment variables, parses it,
# and clears each environment variable. It logs the process of clearing each variable. # and clears each environment variable. It logs the process of clearing each variable.
#
# Note: Environment variables for a hook may be optional and differ between
# services using the same hook.
# If one service sets optional environment variables and another does not, the
# variables may persist and affect subsequent deployments.
# Clearing these variables after each service ensures that only the
# environment variables explicitly specified for each service in the deploy
# file are used.
# Arguments: # Arguments:
# $1 - A YAML formatted string containing environment variable key-value pairs. # $1 - A YAML formatted string containing environment variable key-value pairs.
# Usage: # Usage:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.