Error when reference yml through https

Created a yml file in repo A. Then try to reference it through https (follow the link as below) in repo B.

Set repo A to project visibility to public.

Got error below when trying in CI Lint.
Included file does not have valid YAML syntax!