Skip to content

Github secrets fails in single workflow #25601

Answered by Yanjingzhu
bfloch asked this question in Actions
Discussion options

You must be logged in to vote

I checked your two workflow yaml files, and workflow run logs.
There is the step snippet you used in windows-docker.yaml:

- name: Login to docker repository
      run: |
        ${gh_user} = ("${{ github.repository }}" -Split '/')[0]
        '${{ secrets.DOCKERHUB_TOKEN }}' | docker login -u ${gh_user} --password-stdin

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 .

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants