diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml index 753b9b0..c4b6a88 100644 --- a/.gitea/workflows/docker.yml +++ b/.gitea/workflows/docker.yml @@ -21,6 +21,13 @@ on: env: HOMELAB_API_URL: https://t4tgw-api.ffaerber.duckdns.org +# Gitea derives the automatic token's scopes from this block; without it the +# token cannot write packages and `docker login` to this instance's registry +# fails with a bare "unauthorized". +permissions: + contents: read + packages: write + jobs: build: runs-on: ci-runner