There's no way to tell, but if you use the action like this:
uses: actions/checkout@b07e2576e1f4f4c0428b9f3dd141b42fbe1cf5bc # v4
the commit hash might as well point to this repository even though you didn't specify wanting to use a fork.
Read more in the article: TBD