ci: use PAT for Gitea registry authentication
Switch from the automatic GITHUB_TOKEN to a Personal Access Token to resolve unauthorized errors when writing packages to the Gitea registry.
This commit is contained in:
1 file changed
+4
-4
@@ -48,10 +48,10 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.GITEA_REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
# Gitea's per-job token; grant it package write access, or swap
|
||||
# this for a PAT secret if your instance doesn't wire that up.
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
# The automatic per-job token comes back unauthorized for package
|
||||
# writes on this instance, so use a PAT (scope: write:package) instead.
|
||||
username: ${{ secrets.GITEA_USERNAME }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
- name: Log in to GHCR
|
||||
uses: docker/login-action@v3
|
||||
|
||||
Reference in new issue
Block a user