Can I create annotations for files in submodule?

Hi,
I want to create an annotation when a test fails based on the file path in the exception’s stack trace using the ::error file=... workflow command. This works fine as long as the file is on the current repository, but breaks if it points to a file in a submodule. If I click on the annotation’s link, it just sends me to the PR’s files tab.

Is there any way to resolve a file in submodule? Or maybe to provide a URL instead of a file path?