You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build fails when trying to run docker-build-push from GitHub Enterprise Server repository #1455
The documentation does not mention anything about my problem
There are no open or closed issues that are related to my problem
Description
When running the build-push-action v6.19.0 on a GHES repository, the action fails with almost identical output to #1450. Except I do not specify the the git URL in the build context. This has only started happening since #1451 so I assume it's caused by defaulting to github.com instead of our GHES instance.
Expected behaviour
Run build-push-action without specifying GitHub server in the context input
Action succeeds to build
Actual behaviour
Run build-push-action without specifying GitHub server in the context input
Activity
crazy-max commentedon Feb 11, 2026
Thanks for reporting, can you show the build command issued by build-push-action similar to https://github.com/docker/build-push-action/actions/runs/21904053453/job/63239525652#step:6:189. I would like to check the resolved git context URL. We might need to dynamically set the scope for GHES.
crazy-max commentedon Feb 11, 2026
In the meantime you can use this workaround:
- name: Build and push uses: docker/build-push-action@v6 with: push: true tags: user/app:latest secrets: | GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}KThompson-Lane-Unity commentedon Feb 11, 2026
Hey @crazy-max thanks for responding so quickly! That workaround will definitely unblock us for now
(New lines
\added by me). Let me know if you want any additional info :)crazy-max commentedon Feb 11, 2026
Ok this is definitely a host scope issue. I opened #1456
Can you try with:
- name: Build and push uses: crazy-max/docker-build-push-action@auth-token-dyn-hosteeue56 commentedon Feb 11, 2026
Tested that, it fixed it for us.
crazy-max commentedon Feb 11, 2026
@eeue56 Great thanks!