gitea: actions: login via GITEA_TOKEN to package repository not working
Description
I am having this snippet in a workflow file:
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: my.gitea.domain
username: ${{ github.repository_owner }}
password: ${{ secrets.GITEA_TOKEN }}
I exchanged github.repository_owner with github.actor as well. Bot did not work.
I see the following error in the actions run log:
Log in to the Container registry
Logging into my.gitea.domain...
::error::Error response from daemon: login attempt to https://my.gitea.domain/v2/ failed with status: 401 Unauthorized
Gitea Version
1.19.0
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
I am running it in a docker container and am reverse proxying the https port.
Database
None
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 4
- Comments: 17 (6 by maintainers)
Commits related to this issue
- Add actions support to package auth verification (#23729) Partly fixes https://github.com/go-gitea/gitea/issues/23642 Error info:  Partly fixes https://github.com/go-gitea/gitea/issues/23642 Error info:  (#24028) Backport #23729 by @yp05327 Partly fixes https://github.com/go-gitea/gitea/issues/23642 Error info: ![image](https://user-i... — committed to go-gitea/gitea by GiteaBot a year ago
Currently on 1.20.0-rc2 and this works:
But push fails with:
docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825@PatrickHuetter You must use PATs for writing to package repositories right now. As mentioned in my comment before there is no implementation yet - not in master and therefore in no release either - to use GIT{EA,HUB}_TOKEN for pushing to package repositories.
The linked PR is active with 1.20