diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index eff8203..37ca436 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -42,6 +42,15 @@ env: # The default branch: the only one that also moves `latest`. DEFAULT_BRANCH: master +# Gitea's automatic token starts read-only, and pushing an image needs write +# access to packages. Asking for it here means no deployment has to manage a +# personal access token; an instance that does not grant package scope to the +# automatic token can set a REGISTRY_TOKEN secret instead, which the login step +# prefers whenever it is present. +permissions: + contents: read + packages: write + jobs: container: runs-on: ubuntu-latest