def validate_scalar()

in asfyaml/feature/github/__init__.py [0:0]


    def validate_scalar(self, chunk):
        if not all(char in string.ascii_uppercase + string.digits for char in chunk.contents):
            raise strictyaml.YAMLValidationError(
                None, "String must be uppercase or digits only, e.g. INFRA or LOG4J2.", chunk
            )
        return chunk.contents