docs: note that GITEA_TOKEN impersonates the pushing account, not the owner
Provision Coder Templates / build-images (push) Failing after 6s
Provision Coder Templates / provision (push) Successful in 2m1s

Documents what we just found the hard way: build-images's docker push
runs as whichever Gitea account authenticated the triggering push
(github.actor), which needs its own package-registry write access -
separate from that account having git push rights to the repo at all.
This commit is contained in:
2026-08-27 01:54:07 +02:00
parent 32c71ccaf0
commit 268fb97a1c
+7
View File
@@ -20,6 +20,13 @@ name: Provision Coder Templates
# `permissions: packages: write` below. See # `permissions: packages: write` below. See
# https://docs.gitea.com/usage/actions/token-permissions/ # https://docs.gitea.com/usage/actions/token-permissions/
# #
# GITEA_TOKEN impersonates whoever authenticated the triggering push
# (github.actor), not necessarily the repo owner - that account needs
# write access to this repo's package registry itself, separate from
# having git push access to the repo. A push authenticated as an account
# without registry access fails at docker login with a plain
# "unauthorized" (not a token/config problem).
#
# Any templates/<env>/ that has its own Dockerfile gets its image built and # Any templates/<env>/ that has its own Dockerfile gets its image built and
# pushed here (build-images, on the dedicated "docker-build" runner - see # pushed here (build-images, on the dedicated "docker-build" runner - see
# templates/web/main.tf for why: that runner is scoped to this repo only and # templates/web/main.tf for why: that runner is scoped to this repo only and