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:
Nils Andreas Svee committed 2026-08-25 00:42:59 +07:00
1 parent 1967423305
commit b3ebb553af
1 file changed
+4 -4
+4 -4
View File
@@ -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