I was having problems with one of my AUR packages, and I thought the pkgbuikd was broken until I saw this: https://github.com/github/feedback/discussions/8149.
It looks like if the pkgbuild grabs a tarball from Github, it may not be at the expected url. Just thought I would share this in case someone else runs into the same problem I did.