Github secrets fails in single workflow #25601
-
This action step involving a secret works in one workflow but fails in another:
Results in:
The very same workflows worked fine on my local fork of the repo. This works: https://github.com/nerdvegas/rez/blob/master/.github/workflows/windows-docker-image.yaml#L42 This does not: https://github.com/nerdvegas/rez/blob/master/.github/workflows/windows-docker.yaml#L43 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I checked your two workflow yaml files, and workflow run logs.
I found ${{ secrets.DOCKERHUB_TOKEN }} was empty which caused Login to docker reposity step fail. Can you run windows-docker-image.yaml again, check whether it could succeed? If it also fail, please make sure you still have DOCKERHUB_TOKEN in secrets . |
Beta Was this translation helpful? Give feedback.
-
We’re not sure what changed on your end but the jobs now magically started to work. Thanks! |
Beta Was this translation helpful? Give feedback.
-
It happened again after a PR here: We did not touch the secret so we are pretty sure that it’s a bug in githubs infrastructure. |
Beta Was this translation helpful? Give feedback.
I checked your two workflow yaml files, and workflow run logs.
There is the step snippet you used in windows-docker.yaml:
I found ${{ secrets.DOCKERHUB_TOKEN }} was empty which caused Login to docker reposity step fail.
Can you run windows-docker-image.yaml again, check whether it could succeed? If it also fail, please make sure you still have DOCKERHUB_TOKEN in secrets .