From 3a6a2143ef57202036b98536c63e3f2febb0ca62 Mon Sep 17 00:00:00 2001 From: dlawler489 <104159223@student.swin.edu.au> Date: Mon, 22 Jun 2026 17:48:57 +1000 Subject: [PATCH] CI: push image using a Forgejo access token The auto GITHUB_TOKEN lacks package-write scope (push failed with unauthorized: reqPackageAccess). Use a REGISTRY_TOKEN secret (Forgejo token with write:package) and log in as the repo owner instead. Co-Authored-By: Claude Opus 4.8 --- .forgejo/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index cdf37e9..927378c 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -17,7 +17,9 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Forgejo container registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.plexultra.com -u "${{ github.actor }}" --password-stdin + # REGISTRY_TOKEN = a Forgejo access token with write:package scope, added + # as a repo Actions secret. The auto GITHUB_TOKEN can't push packages. + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.plexultra.com -u "${{ github.repository_owner }}" --password-stdin - name: Build and push image run: |