def validate_runner_parameter_attribute_override(
    action_ref, param_name, attr_name, runner_param_attr_value, action_param_attr_value
):
    """
    Validate that the provided parameter from the action schema can override the
    runner parameter.
    """
    param_values_are_the_same = action_param_attr_value == runner_param_attr_value
    if (
        attr_name not in RUNNER_PARAM_OVERRIDABLE_ATTRS
        and not param_values_are_the_same
    ):
        raise InvalidActionParameterException(
            'The attribute "%s" for the runner parameter "%s" in action "%s" '
            "cannot be overridden." % (attr_name, param_name, action_ref)
        )

    return True

    Validate that the provided parameter from the action schema can override the
    runner parameter.
    
st2common/st2common/util/schema/__init__.py