We’re trying to use the svenstaro/upload-release-action in CosmoScout VR. While it works very nicely for our workflows running on Linux, it somehow fails with this error on a Windows host.
After some testing, it seems that a significant difference between our workflow jobs are the build times: Linux takes only 30 min while Windows requires around 1.5 h. If the build times are lowered artificially, the upload works just fine. Can it be possible that the credentials provided by GitHub expire to quickly?
Using a separate job and passing artifacts using upload/download doesn’t work, unforutnately. The expiry timer seems to kick off when the workflow containing the jobs start, not when the job starts. I tried the multi-job approach and got the same bad credentials result, even though the job that used those was configured to start only after the long-running build job ended (via needs). Now that I’m reading the docs carefully, that’s what it says:
Note: When a workflow run or its jobs are queued for more than one hour, the token may expire before the job starts.
For jobs the want to use credentials after the expiry period, the only way seems be to create and use a Personal Access Token